flyout doesn't adapt to mobile

Eduardo Gomez Romero 205 Reputation points
2024-04-06T02:13:24.48+00:00

User's image

This is the code for my shell

<Shell
    x:Class="DemyAI.AppShell"
    xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
    xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
    xmlns:mct="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
    xmlns:vm="clr-namespace:DemyAI.ViewModels"
    x:Name="flyout"
    Title="DemyAI"
    x:DataType="vm:AppShellViewModel"
    FlyoutBehavior="{OnIdiom Desktop=Locked,
                             Phone=Flyout}"
    Shell.NavBarIsVisible="{OnIdiom Phone=True,
                                    Desktop=False}"
    Shell.TabBarIsVisible="False">

    <Shell.FlyoutFooterTemplate>
        <DataTemplate>
            <Button
                Margin="20"
                Command="{Binding SignOutCommand}"
                CornerRadius="8"
                Text="Log out" />
        </DataTemplate>
    </Shell.FlyoutFooterTemplate>

</Shell>

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,895 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Eduardo Gomez Romero 205 Reputation points
    2024-04-06T02:22:30.91+00:00

    ignore this

    it was an emulator problem