【发布时间】:2019-05-21 22:08:31
【问题描述】:
如何让导航抽屉从右向左滑动,下面是 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/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>
【问题讨论】:
-
我不认为这是可能的,我可能错了!
-
@G.hakim 最好的方法是什么?
标签: c# xamarin.forms xamarin.android xamarin.ios navigation-drawer