Skip to content

PathIcon (UWP only)

Jan Karger ツ ☀ edited this page Dec 18, 2019 · 2 revisions

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>

2019-12-18_09h46_25

2019-12-18_09h46_38

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.