.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,831 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
This is how I've disabled the back button on my "LoginPage.xaml".
<Shell.BackButtonBehavior>
<BackButtonBehavior IsVisible="False" IsEnabled="False" />
</Shell.BackButtonBehavior>
Clearly, I don't want people to simply open the Shell Flyout menu and navigate away without having to login. So I need to disable that Flyout button at the top of the page. Not sure how to do that.
There seems to be no consistent, analogous interface in order to disable it the same way I've done with the back button.
Please help!
Found it, yo!
<ContentPage x:Class="CEDDashboard.View.LoginPage"
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:vm="clr-namespace:CEDDashboard.ViewModel"
xmlns:local="clr-namespace:CEDDashboard.View"
x:DataType="vm:LoginViewModel"
Shell.NavBarIsVisible="False"
Shell.FlyoutBehavior="Disabled"
Title="Login">
You put it in the first ContentPage tag on the first line of xaml. Duh!!!!!!!!