How to use private icons instead of public icons in controls that support icons? #366
Unanswered
6get-xiaofan
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hi @6get-xiaofan, you can add a new font like Font Awesome and use it in
<ItemGroup>
<Resource Include="Fonts\FontAwesome.ttf" />
</ItemGroup>
<Application
...>
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ui:ThemesDictionary Theme="Dark" />
<ui:ControlsDictionary />
<FontFamily x:Key="FontAwesomeFont">pack://application:,,,/;component/Fonts/#Font Awesome</FontFamily>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
</Application>
<ui:FontIcon
FontFamily="{DynamicResource FontAwesomeFont}"
Glyph="" /> |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The desired icon cannot be found in the list of supported icons. How to make the control support private icons?
Beta Was this translation helpful? Give feedback.
All reactions