1

我是 Xamarin 的新手,正在学习 FreshMVVM。

请任何人指导我如何将SlideOverKit显示为汉堡菜单,而不是使用FreshMVVM的 MasterDetail 表单单击按钮。

提前致谢。

4

1 回答 1

0

我不确定是否有 FreshMVVM,但您所要做的就是添加一个具有菜单图标的 ToolbarItem。然后,绑定单击命令以显示 slideOverKit 菜单。

<ContentPage>
    <ContentPage.ToolbarItems>
        <ToolbarItem Name="Cart" Command="{Binding GoToCartCommand}" Icon="Icons/cart.png"></ToolbarItem>
    </ContentPage.ToolbarItems>
    <ContentPage.Content>
        <!-- your content goes here -->
    </ContentPage.Content>
</ContentPage>
于 2018-04-24T05:59:58.690 回答