Search code examples
xamlwin-universal-appicon-fonts

Use icon fonts in Windows Universal apps


Since Windows 10 has .NET introduced the property FontIcon.Glyph. If you add code below to your xaml page if gives me next char Σ.

<FontIcon FontFamily="Candara" Glyph="&#x03A3;"/>

So I was thinking can you add an other icon font like Font Awesome or Icomoon info your project?


Solution

  • I've download a font, added into my solution and I use this code:

    <FontIcon FontFamily="ms-appx:/Fonts/FontAwesome.otf#FontAwesome"  Glyph="&#xF055;" Foreground="Black"/>
    

    what results into this:

    enter image description here