How to chage color of selected NavigationStore? #552
-
Hello, im trying to change color, but i dont know how to do it. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
I think by default its defined by current Windows theme/accent color |
Beta Was this translation helpful? Give feedback.
-
You can override the accent color for your app with: var accent = System.Windows.Media.Color.FromRgb(0x0A, 0x9A, 0x36);
Wpf.Ui.Appearance.Accent.Apply(accent); Or if you only want to change the Navigation View, you can override the color used with a local resource block: <ui:NavigationView ...>
<ui:NavigationView.Resources>
<Color x:Key="SystemAccentColorSecondary">#0A9A36</Color>
</ui:NavigationView.Resources>
<!-- Nav Content -->
</ui:NavigationView> |
Beta Was this translation helpful? Give feedback.
-
In version 3, this looks like to be done by using Edit: nevermind, internal code issue. |
Beta Was this translation helpful? Give feedback.
You can override the accent color for your app with:
Or if you only want to change the Navigation View, you can override the color used with a local resource block: