Flyout behavior

Eduardo Gomez 3,651 Reputation points
2023-12-07T00:02:34.49+00:00

I was able to make the flyout on desktop to be always opened.

  FlyoutBehavior="{OnIdiom Desktop=Locked,
                           Phone=Flyout}">


this is ok, but if we take a look at this app

User's image

the user has the ability to close it in desktop and if you go to another page, it will remember what the user did.

For example, if I open the pop up, and select an option, the flyout will remain open, because it will remember what I did.

this is my shell vm

ublic partial class AppShellViewModel(IAuthenticationService authenticationService, IAppService appService) : BaseViewModel {

    //This will hold the data of the user that is logged in
    [ObservableProperty]
    public required Models.User user;

    [ObservableProperty]
    bool isFlyoutOpen;

    [RelayCommand]
    async Task SignOut() {

        authenticationService.SignOut();

        await appService.NavigateTo($"//{nameof(LoginPage)}", true);

    }

https://github.com/eduardoagr/DemyAI

If I do this, I needto move push all my content

Developer technologies | .NET | .NET MAUI
{count} votes

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.