C# 导航栏从右到左-Xamarin.forms
如何使导航抽屉从右向左滑动,下面是XAML代码,我尝试使用C# 导航栏从右到左-Xamarin.forms,c#,xamarin.forms,xamarin.android,xamarin.ios,navigation-drawer,C#,Xamarin.forms,Xamarin.android,Xamarin.ios,Navigation Drawer,如何使导航抽屉从右向左滑动,下面是XAML代码,我尝试使用FlowDirection,但它正在改变整个应用程序方向,我希望效果仅在导航抽屉上: <?xml version="1.0" encoding="utf-8" ?> <MasterDetailPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xam
FlowDirection
,但它正在改变整个应用程序方向,我希望效果仅在导航抽屉上:
<?xml version="1.0" encoding="utf-8" ?>
<MasterDetailPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:views="clr-namespace:Via.Views"
FlowDirection="RightToLeft"
x:Class="Via.Views.MainPage">
<MasterDetailPage.Master>
<views:MenuPage />
</MasterDetailPage.Master>
<MasterDetailPage.Detail>
<NavigationPage
FlowDirection="RightToLeft"
>
<NavigationPage.Icon>
<OnPlatform x:TypeArguments="FileImageSource">
<On Platform="iOS" Value="tab_feed.png"/>
</OnPlatform>
</NavigationPage.Icon>
<x:Arguments>
<views:AccidentReports />
</x:Arguments>
</NavigationPage>
</MasterDetailPage.Detail>
</MasterDetailPage>
我们也尝试过这样做,但是Xamarin.Forms不支持。我们使用了一个插件,可以。它需要更多的定制(因为它不是原生的x.forms行为),但它会完成工作。我们正在两个应用商店的xamarin.forms应用程序中使用它。我认为这不可能,我可能错了!最好的方法是什么@G.hakim?