Home

Awesome

wpf.fontawesome5

With wpf.fontawesome5 you can use the popular icon library FontAwesome 5.12.0 within your WPF applications.

Installation

You can download source and build project on your own or install package via nuget

PM> Install-Package wpf.fontawesome5

Usage

First define namespace in your xaml file:


<UserControl x:Class="My.Awesome.View"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:fa="http://schemas.fontawesome.com/wpf">

  ...
  
</UserControl>

After that you can use the fa:Icon control to display awesome icons. Property FaName specifies the icon name to display. If an icon has more then one style you can switch it with property FaStyle between Brands, Regular und Solid. The fa:Icon control stretches automatically to container size or you can set Width and Height to size your icon.


 ...
 
  <Grid>
    
    <fa:Icon FaName="font-awesome" />
  
  </Grid>
 
 ...