Flyout behavior
Eduardo Gomez
4,156
Reputation points
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
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
Developer technologies | .NET | .NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
Sign in to answer