Comment masquer l'onglet Shell d'une autre page dans Xamarin Forms?
Vidhya
J'utilise Shell Tabbed Page, et cela fonctionne très bien. Mais lorsque je navigue vers une nouvelle page en utilisant
Navigation.PushAsync(new SecondPage());
Ensuite, dans l'onglet Shell de la deuxième page, il apparaît également, je dois donc masquer ce shell de cette page.
Comment faire cela?
À partir de la page cs du backend Sheel, je peux masquer cela, j'essaie également avec Messaging Center de masquer cela, mais cela ne fonctionne pas.
Bruno Caceiro
Dans votre page, ajoutez simplement:
Shell.TabBarIsVisible="False"
Voici un exemple:
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>