Skip to content

How to chage color of selected NavigationStore? #552

Answered by kevfrench
IlyaKotomin asked this question in Q&A
Discussion options

You must be logged in to vote

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>

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@IlyaKotomin
Comment options

Comment options

You must be logged in to vote
1 reply
@Chrlss
Comment options

Answer selected by pomianowski
Comment options

You must be logged in to vote
3 replies
@GalaxyGaming2000
Comment options

@SamKr
Comment options

@Chrlss
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants