我使用Xamarin.Forms开发了一个标签页应用程序。操作系统导航菜单与我的应用程序重叠。这个菜单可以隐藏吗?
我的XAML是: RootTabbedPage:
<?xml version="1.0" encoding="utf-8" ?>
<TabbedPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="MyTimesheet.MainPage"
xmlns:behaviors="clr-namespace:MyTimesheet.Behaviors"
xmlns:ViewModels="clr-namespace:MyTimesheet.ViewModels"
xmlns:pages="clr-namespace:MyTimesheet.Pages"
behaviors:CurrentTabChangedBehavior.AttachBehavior="true"
>
<TabbedPage.BindingContext>
<ViewModels:MainViewModel></ViewModels:MainViewModel>
</TabbedPage.BindingContext>
<pages:ClientiPage Title="Clienti"/>
<pages:CommessePage Title="Commesse"/>
<pages:ConsuntivazioniPage Title="Consuntivazioni"/>
<!--Pages can be added as references or inline-->
</TabbedPage>
我的孩子页面:
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:ViewModels="clr-namespace:MyTimesheet.ViewModels"
xmlns:Converters="clr-namespace:MyTimesheet.Converters"
xmlns:Ext="clr-namespace:MyTimesheet.Extensions"
x:Class="MyTimesheet.Pages.ClientiPage">
<ContentPage.BindingContext>
<ViewModels:ClientiViewModel/>
</ContentPage.BindingContext>
<StackLayout >
...
资产\图标\ 24 \ 24_addsquarebutton.png
...
</ContentPage>
我找到了一个在xamaring论坛上开发标签页的例子