-
Notifications
You must be signed in to change notification settings - Fork 667
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: How do you set selected and unselcted foreground color for a textblock in a MenuItemTemplate for the NavigationView control? #3193
Comments
@Going-Gone to double-check, do you mean TextBox or TextBlock? You're using Are you also planning on changing the background of the selected menu item to ensure the text remains legible? |
If I'm understanding your scenario correctly, the easiest way to achieve this is with light weight styling. Overwrite the brushes defined for NavigationViewItemForeground* resources to use values you prefer.
|
Apologies, TextBlock.
|
That works, Thanks. |
Sounds like the question is resolved. Closing. |
Is there a way to modify the template textblock behavior based on the navigation view visual state?
When the menu item is selected, the text foreground should be black.
When the menu item is not selected, the text foreground should be white.
I've not been able to figure out how to modify the behavior of the template textbox for the menu items.
The text was updated successfully, but these errors were encountered: