locked
The Master detail icon doesn't respond to the FlowDirection.RightToLeft unless put in NavigationPage RRS feed

  • Question

  • User356011 posted

    The hamburger button of the master detail page is always on the left even I set the FlowDirection to RightToLeft , this happens when the MainPage is set this way in App.xaml.cs:

    MainPage = new MasterDetailPage();
    

    The menu itself is on the right:

    But I noticed that it works properly when I put it in NavigationPage:

    MainPage = new NavigationPage( new MasterDetailPage());

    but I have to set the NavigationPage.HasNavigationBar to False, to look normal. Is there a solution to this problem other than the workaround ?

    Wednesday, January 30, 2019 2:28 PM

All replies

  • User372631 posted

    Cause: Some of Controls in xamarin.forms is not friendly to localization support.And most of properties are private.So we could not change the value in forms.

    Solution: You can use CustomRenderer to implement it in two native platforms.

    Thursday, January 31, 2019 7:14 AM
  • User356011 posted

    @"Quintán" said: Solution: You can use CustomRenderer to implement it in two native platforms.

    What renderer class should I use for that in iOS; is it PhoneMasterDetailRenderer or/ and TabletMasterDetailRenderer?

    Wednesday, February 13, 2019 9:49 AM