【发布时间】:2020-02-21 07:00:17
【问题描述】:
MasterDetail 页面 Master 行为更改在 iPhone 设备中不起作用。滑动时,它始终在详细信息页面下方显示母版页。我需要详细页面上方的母版页幻灯片。
<MasterDetailPage
x:Class="testMasterDetail.Views.MainPage"
xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:d="http://xamarin.com/schemas/2014/forms/design"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:views="clr-namespace:testMasterDetail.Views"
MasterBehavior="Popover"
mc:Ignorable="d">
<MasterDetailPage.Master>
<views:MenuPage />
</MasterDetailPage.Master>
<MasterDetailPage.Detail>
<NavigationPage>
<NavigationPage.Icon>
<OnPlatform x:TypeArguments="FileImageSource">
<On Platform="iOS" Value="tab_feed.png" />
</OnPlatform>
</NavigationPage.Icon>
<x:Arguments>
<views:ItemsPage />
</x:Arguments>
</NavigationPage>
</MasterDetailPage.Detail>
【问题讨论】:
标签: ios iphone xamarin.forms master-detail