flyout doesn't adapt to mobile

Eduardo Gomez Romero 1,355 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>

Developer technologies | .NET | .NET MAUI
0 comments No comments
{count} votes

1 answer

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

    ignore this

    it was an emulator problem


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.