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

mshwfmshwf EGMember ✭✭✭
edited January 30 in Xamarin.Forms

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 ?

Answers

  • LucasZhangLucasZhang Member, Xamarin Team Xamurai

    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.

  • mshwfmshwf EGMember ✭✭✭
    edited February 13

    @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?

Sign In or Register to comment.