Why so that when I set the Flyout behavior for one page it afects the wholle app
Felipe Gai
0
Reputation points
When Im setting the Flyout behavior to not appear on thr login page it gets disabled in the whole app, strager of all is that if I disable gesture navigation, if I pull on the side of the screen it appears, plus if i tap on the flyoutitem the flyout button appear but is dissabled
<Shell
x:Class="VersatilFV.AppShell"
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:Views="clr-namespace:VersatilFV.View"
xmlns:local="clr-namespace:VersatilFV"
Shell.FlyoutBehavior="Flyout"
Shell.TabBarIsVisible="False"
Title="VersatilFV">
<ShellItem Route="Login" FlyoutItemIsVisible="False">
<ShellContent ContentTemplate="{DataTemplate Views:Login}" />
</ShellItem>
<FlyoutItem Route="AppMunu" Title="Home">
<ShellContent ContentTemplate="{DataTemplate Views:AppMunu}" />
</FlyoutItem>
</Shell>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="VersatilFV.View.Login"
Shell.FlyoutBehavior="Disabled"
Title="Login">
<ScrollView
Padding="15">
<VerticalStackLayout
Padding="0"
Spacing="25">
<Image
Source="versatil.jpg"
HeightRequest="185"
Aspect="AspectFit"
SemanticProperties.Description="dot net bot in a race car number eight" />
<Frame
Padding="2">
<Entry
TextColor="Black"
HeightRequest="50"
Placeholder="CNPJ:"/>
</Frame>
<Frame
Padding="2">
<Entry
TextColor="Black"
HeightRequest="50"
Placeholder="Usuário:"/>
</Frame>
<Frame
Padding="2">
<Entry
TextColor="Black"
IsPassword="True"
HeightRequest="50"
Placeholder="Senha:"/>
</Frame>
<Button
Text="Acessar"
Clicked="Button_Clicked">
</Button>
</VerticalStackLayout>
</ScrollView>
</ContentPage><ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:d="http://schemas.microsoft.com/dotnet/2021/maui/design"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
x:Class="VersatilFV.View.AppMunu"
Title="Menu">
<Shell.BackButtonBehavior>
<BackButtonBehavior IsVisible="False" IsEnabled="False" />
</Shell.BackButtonBehavior>
</ContentPage>
Sign in to answer