我是一個完整的noob to xamarin :)在棱鏡中使用masterdetailview實現UWP彈出splitview?
所以想知道是否有人可以指我正確的資源。
簡而言之,我想使用Xamarin MasterDetailPage在棱鏡中實現類似this的東西。
使用主細節示例here,漢堡包菜單不起飛。
<MasterDetailPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:prism="clr-namespace:Prism.Mvvm;assembly=Prism.Forms"
prism:ViewModelLocator.AutowireViewModel="True"
x:Class="HelloWorld.Views.MyMasterDetail">
<MasterDetailPage.Master>
<ContentPage Title="Default">
<StackLayout>
<Button Text="ViewA" Command="{Binding NavigateCommand}" CommandParameter="MyNavigationPage/ViewA?id=A" />
<Button Text="ViewB" Command="{Binding NavigateCommand}" CommandParameter="MyNavigationPage/ViewB?id=B" />
<Button Text="ViewC" Command="{Binding NavigateCommand}" CommandParameter="MyNavigationPage/ViewC?id=C" />
</StackLayout>
</ContentPage>
</MasterDetailPage.Master>
</MasterDetailPage>
眼下,雖然有足夠的空間,它表明類似
(只作爲樣本,我沒有使用SplitViewMenu在所有)
我需要圖標/一些小文本才能最初顯示,點擊漢堡包時,它應該擴展(你知道就像第一個鏈接/槽音樂應用程序的行爲)。
提示?
對不起,看起來我不清楚?我沒有使用SplitViewMenu,我嘗試使用提供的示例棱鏡工作,只有原因,我包括splitviewmenu是演示,我會編輯的問題,使其更清晰。 – Yash
您能否提供一個關於如何使用使用原生SplitView的自定義MasterDetailPageRenderer示例的示例?如果沒有,希望Xamarin將在下一個版本中發佈這個控件。 –