简体   繁体   English

如何在 Xamarin Forms 中隐藏另一个页面的 Shell Tabbed?

[英]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.

相关问题 Xamarin表单中的选项卡式页面OnBackButtonPressed - Tabbed Page OnBackButtonPressed in Xamarin Forms 如何使用Prism从内容页面导航到xamarin.forms中选项卡式页面的第二个选项卡 - how to navigate from a content page to the second tab of Tabbed page in xamarin.forms using Prism Xamarin Forms iOS-从ContentView调用选项卡式页面按钮 - Xamarin Forms iOS - invoking Tabbed Page button from ContentView 如何更改 Xamarin Forms 中标签页指示器的颜色 - How to change the color of tabbed page indicator in Xamarin Forms 如何在Xamarin表单的顶部选项卡式页面上显示搜索选项卡? - How to bring a search tab on top tabbed page in xamarin forms? 如何在Xamarin表单的选项卡式页面顶部添加搜索栏 - How to add Search bar in top of a tabbed page in xamarin forms 如何将 xamarin 表单中的选项卡 2 设置为启动时的默认选项卡 - How set tab 2 in a xamarin forms Tabbed Page as the default tab on startup 如何在xamarin.forms的选项卡式页面内添加用户控件 - How to add a user control inside a tabbed page in xamarin.forms Xamarin.Forms:如何在整个应用程序中获取选项卡式页面 - Xamarin.Forms: How to get Tabbed Page throughout the app Xamarin构成Android我们如何更改选项卡式页面图标大小 - Xamarin forms Android how We change Tabbed Page Icon Size
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM