Flyout behavior
Eduardo Gomez
3,651
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
4,153 questions
Sign in to answer