Crumble
Crumble
CC#
Created by Crumble on 4/5/2025 in #help
How to hide Back Button in Maui 8 Appshell
ok again a tiny little thing that should be a single line of code is driving me nuts, how do i disable the damn back button that appears at the top left of the window? i have tried Shell.NavBarIsVisible="False" in App.xaml, appshell.xaml and i have tried doing it with code in appshell.xaml.cs
c#
protected override void OnNavigating(ShellNavigatingEventArgs args)
{
base.OnNavigating(args);

Shell.SetBackButtonBehavior(this, new BackButtonBehavior
{
IsVisible = false
});
}
c#
protected override void OnNavigating(ShellNavigatingEventArgs args)
{
base.OnNavigating(args);

Shell.SetBackButtonBehavior(this, new BackButtonBehavior
{
IsVisible = false
});
}
1 replies