maui
maui copied to clipboard
NavigationPage TitleBar Persists if child pages have a title
Description
Creating a NavigationPage with HasNavigationBar="False" will still display a Navigation Bar if one of the child pages has a title.

Steps to Reproduce
- Create a new maui app
- Delete the App Shell
- Create a new xaml TabbedPage
- Make the app load the TabbedPage
- Inside the Tabbed Page paste this code:
<NavigationPage Title="My Page"
HasNavigationBar="False">
<x:Arguments>
<local:MainPage/>
</x:Arguments>
</NavigationPage>
- Give MainPage.xaml a "Title" property
- Run the project. Obersve how the NavigationPage will still have a NavigationBar even though the property is set to false. You can even add the
BarBackgroundColorPropertyand it will be shown
Link to public reproduction project repository
see repro steps
Version with bug
7.0 (current)
Last version that worked well
7.0 (current)
Affected platforms
Android, Windows
Affected platform versions
Windows 11, Android, haven't tested iOS
Did you find any workaround?
Delete the "Title" property for all child pages of a NavigationPage
Relevant log output
No response