[英]How to hide Shell Tabbed from another Page in Xamarin Forms?
I am using Shell Tabbed Page, and it's working fine.我正在使用 Shell Tabbed Page,它运行良好。 But when I navigate to a new Page using
但是当我使用导航到一个新页面时
Navigation.PushAsync(new SecondPage());
Then inside the Second Page Shell Tabbed also showing, so I need to hide this shell from this page.然后在第二页外壳选项卡内也显示,所以我需要从这个页面隐藏这个外壳。
How to do this?这该怎么做?
From Sheel backend cs page I can hide this,I also try with Messaging Center to hide this but its not working.从Sheel后端cs页面我可以隐藏它,我也尝试使用消息中心隐藏它但它不起作用。
In your page just add:在您的页面中添加:
Shell.TabBarIsVisible="False"
Here is a sample:这是一个示例:
ContentPage 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"
mc:Ignorable="d"
Shell.TabBarIsVisible="False"
x:Class="Sample.MySamplePage"
Title="TitleTest">
<StackLayout Spacing="20" Padding="15">
<Label Text="Hello Xamarin"/>
</StackLayout>
</ContentPage>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.