C#C
C#9mo ago
Crumble

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
        });
    }
Was this page helpful?