Prism icon indicating copy to clipboard operation
Prism copied to clipboard

PrismNavigationPage doesn't allow you to change navbar title color

Open sact1909 opened this issue 1 month ago • 2 comments

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

image

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 image

this is how my Resources/Styles/Styles.xml looks (I'm forcing the bartextcolor to be red in any scenario) image

and it still black image

Please download the Sample Project (is the same that I use for the images) PrismNavigationPageBug.zip

Steps to Reproduce

  1. Create a New Project using the Prism Template Projects
  2. Go to Resources/Styles/Styles.xml
  3. Search for the style section with TargetType=NavigationPage
  4. Set the BarTextColor property to whatever color, in my case I use Red
  5. 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, image

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

sact1909 avatar May 09 '24 05:05 sact1909