I am trying to use NavigationView with custom icons as Menu Items in my UWP app. However, it seems NavigationView don't accept custom icons or BitmapIcon. The sample application I have seen in android is below;
Sample Code of NavigationView Menu Items
<NavigationView.MenuItems>
<NavigationViewItem Name="SalahNavItem" Icon="CustomIcon" Content="Apps" Tag="Salah"/>
<NavigationViewItem Name="AppsNavItem" Icon="CustomIcon1" Content="Apps" Tag="apps"/>
</NavigationView.MenuItems>
What I am trying to achieve is to add custom Icon / Image in Menu Items, any clue about it in UWP?
You can add custom Icon Use
<NavigationView.MenuItems>
<NavigationViewItem Name="SalahNavItem" Icon="CustomIcon" Content="Apps" Tag="Salah">
<NavigationViewItem.Icon>
<!-- Use Custom icon <FontIcon Glyph=""/>
Or <BitmapIco UriSource="Path"/> -->
</NavigationViewItem.Icon>
<NavigationViewItem Name="AppsNavItem" Icon="CustomIcon1" Content="Apps" Tag="apps"/>
</NavigationView.MenuItems>
See this link
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With