disable top bar

Mielesplayz 281 Reputation points
2022-09-05T12:55:25.48+00:00

Is there a way to get rid of this top bar?

237881-image-3.png

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,859 questions
0 comments No comments
{count} votes

Accepted answer
  1. dg2k 1,386 Reputation points
    2022-09-06T04:17:58.703+00:00

    @Mielesplayz - What you're looking for is Shell.NavBarIsVisible="False".

    To apply to all your pages, use this in the AppShell.xaml, hence:

    <Shell  
        x:Class="YourMauiApp.AppShell"  
        xmlns="http://schemas.microsoft.com/dotnet/2021/maui"  
        . . .  
        Shell.NavBarIsVisible="False">  
    

    To apply selectively to your pages, use Shell.NavBarIsVisible="False" with a ContentPage XAML page, hence:

    <ContentPage  
        x:Class="YourMauiApp.Views.ContentPageUnderViewsFolder"  
        xmlns="http://schemas.microsoft.com/dotnet/2021/maui"  
        . . .  
        Shell.NavBarIsVisible="False">  
    
    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful