An Azure service that provides a hybrid, multi-cloud management platform for APIs.
Hi @jael pineda quiroz ,
The behavior depends on your app's root container. If your app uses Shell (the default MAUI 10 template with AppShell), the NavigationPage.SetHasNavigationBar(...) attached property is ignored that's why it has no effect on your pushed pages. Use the Shell property instead:
- XAML on each detail page:
Shell.NavBarIsVisible="False" - or C# in the constructor:
Shell.SetNavBarIsVisible(this, false);
If you're hosting in a NavigationPage (new Window(new NavigationPage(new MainPage()))), then NavigationPage.SetHasNavigationBar(this, false) does work in that case make sure you're not wrapping pages inside a Shell, and that the property is set on the pushed page instance.
Note: Shell.NavBarVisibilityAnimationEnabled (new in .NET 10) only animates the show/hide it doesn't hide the bar.
Hope this helps!
If the resolution was helpful, kindly take a moment to click on and click on Yes for was this answer helpful. And, if you have any further query do let us know.