PathIcon (UWP only) - MahApps/MahApps.Metro.IconPacks GitHub Wiki
The PathIcon
controls can be used for controls which needs an IconElement
derived element for their Icon
property like the NavigationViewItem
.
<NavigationView PaneDisplayMode="Left" IsBackButtonVisible="Collapsed">
<NavigationView.MenuItems>
<NavigationViewItem Content="It works...">
<NavigationViewItem.Icon>
<iconPacks:PathIconTypicons Kind="ThumbsUp" />
</NavigationViewItem.Icon>
</NavigationViewItem>
<NavigationViewItem Content="Cool">
<NavigationViewItem.Icon>
<iconPacks:PathIconFontAwesome Kind="FlagSolid" Foreground="Crimson" />
</NavigationViewItem.Icon>
</NavigationViewItem>
</NavigationView.MenuItems>
</NavigationView>
Note: The PathIconFeatherIcons
is currently not available, because the path data uses stroke releated data instead fill data. It's not possible to set any stroke related data on the PathIcon
control.