when navigation view item is selected it should higlight with customised color
when navigation view item is selected it should higlight with customised color
You can use NavigationViewItem to customize the Background or something else color.
Hello,
Welcome to Microsoft Q&A!
You could try to override the corresponding theme resource for the item selected status.
Like this:
<NavigationView x:Name="NavigationViewControl" >
<NavigationView.Resources>
<SolidColorBrush x:Key="NavigationViewItemBackgroundSelected" Color="Yellow"/>
</NavigationView.Resources>
<NavigationView.MenuItems>
<NavigationViewItem Content="A" x:Name="A" />
<NavigationViewItem Content="B" x:Name="B" />
<NavigationViewItem Content="C" x:Name="C" />
</NavigationView.MenuItems>
</NavigationView>
Thank you.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
@RoyLi-MSFT after removing cursor from menuitem still the color remains occupied full menu item.only on hover and click of the menu item it should highlight with color
6 people are following this question.