question

EJ-5254 avatar image
0 Votes"
EJ-5254 asked WenyanZhang-MSFT edited

MasterDetailPage renderer DidRotate is not called (iOS)

Hi,

I want to do some custom code in MasterDetailPage renderer when iPad is rotated. Problem is WillRotate/DidRotate is not called, any idea why?

 [assembly: ExportRenderer(typeof(MasterDetailPage), typeof(IPadMasterDetailRenderer), UIUserInterfaceIdiom.Pad)]
 namespace xx.iOS.Renderers
 {
     class IPadMasterDetailRenderer : TabletMasterDetailRenderer
     {
         public override void DidRotate( UIInterfaceOrientation fromInterfaceOrientation )
         {
             base.DidRotate( fromInterfaceOrientation );
         }
     }
 }


dotnet-xamarin
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.


MasterDetailPage is obsolete as of version 5.0.0. You could have a try to use Flyoutpage .

0 Votes 0 ·

0 Answers