0
我在Xamarin.Forms应用程序中使用了MasterDetailPage。在Xamarin.Forms中创建MasterDetailPage菜单项的最佳方法是什么
要创造的菜单项,我使用的按钮
<MasterDetailPage.Master>
<ContentPage Title="Menu">
<StackLayout Orientation="Vertical">
<Button Text="Club-House" Command="{Binding ClubHouseCommand}" />
<Button Text="Parcours" />
<BoxView VerticalOptions="CenterAndExpand" />
<Button Text="A propos" Command="{Binding AProposCommand}" VerticalOptions="End" />
</StackLayout>
</ContentPage>
</MasterDetailPage.Master>
有没有更好的办法做到这一点?我正在考虑像MenuItem或其他菜单菜单。
谢谢
使用listview代替按钮 –
谢谢@JayPatel。这是做这件事的标准方式吗? –
是的大多数开发人员使用listview。 请参阅https://almirvuk.blogspot.in/2016/10/how-to-make-master-detail-page.html –