How to hide App Title bar on MAUI application

998 Views Asked by At

I've converted my Xamarin.Forms to a Maui application but have some issues in removing the App bar

App Screenshot

How can I remove the App bar ("Yamas Crew") from my page ?

I already tried the tricks from Xamarin.Forms, but they don't seem to be working

  • Shell.NavBarIsVisible="False" (removes the navbar below the app bar)
  • ContentPage.Title = "" (hides the navbar below the appbar)
1

There are 1 best solutions below

0
On

For Android, check your theme set in Platform/Android/MainActivity.cs.

You should see an attribute above the class similar to this

[Activity(Theme = "@style/Maui.SplashTheme", MainLauncher = true, ...

Alternatively, if you set the theme like below, then the TitleBar will come set from Android and will not be overridden in Maui by Shell.NavBarIsVisible="False". For this case, I would direct you to other examples for removing the title bar in Android: How to remove title bar from the android activity?

protected override void OnCreate(Bundle savedInstanceState)
{
    SetTheme(Resource.Style.AppTheme);
    base.OnCreate(savedInstanceState);
}