Prism
Prism copied to clipboard
PrismNavigationPage doesn't allow you to change navbar title color
Description
in your documentation you said, PrismNavigationPage will be registered as the default navigation page in case we don't have a custom navigation page, but also you mention this
My current version (but it happen with any version not matter what) .NET MAUI 8 Prism.DryIoC.Maui = 9.0.401-pre
that's why I would like to keep the PrismNavigationPage as default, but this doesn't allow you to change the navbar title color, no matter what you do, it will be black
this is how my PrismStartup,cs looks
this is how my Resources/Styles/Styles.xml looks (I'm forcing the bartextcolor to be red in any scenario)
and it still black
Please download the Sample Project (is the same that I use for the images) PrismNavigationPageBug.zip
Steps to Reproduce
- Create a New Project using the Prism Template Projects
- Go to Resources/Styles/Styles.xml
- Search for the style section with TargetType=NavigationPage
- Set the BarTextColor property to whatever color, in my case I use Red
- Run the Project (and the bartextcolor in the navbar will be still in color black)
Platform with bug
.NET MAUI
Affected platforms
Android
Did you find any workaround?
Obvious If register the NavigationPage in the PrismStartup.cs it will work,
but it is supposed to be there when you don't have any other custom NavigationPage, that what you say
Relevant log output
No response