Skip to content
This repository has been archived by the owner on Feb 6, 2021. It is now read-only.

A (very) simple wrapper for Font Awesome, facilitating use in .net desktop projects

License

Notifications You must be signed in to change notification settings

christophano/FontAwesomeDotNet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Please note, this project is now archived.

FontAwesomeDotNet

A (very) simple wrapper for Font Awesome, facilitating use in .net desktop projects

Build status

Example usage (in WPF)

<UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:fa="clr-namespace:FontAwesome.Net;assembly=FontAwesome.Net">
  <UserControl.Resources>
    <FontFamily x:Key="FontAwesome">pack://application:,,,/FontAwesome.Net;component/Fonts/#FontAwesome</FontFamily>
  </UserControl.Resource>
  <StackPanel Orientation="Horizontal">
    <TextBlock FontFamily="{StaticResource FontAwesome}"
               Margin="5"
               FontSize="10"
               Text="{x:Static fa:FontAwesome.github}" />
    <TextBlock FontFamily="{StaticResource FontAwesome}"
               Margin="5"
               FontSize="14"
               Text="{x:Static fa:FontAwesome.github}" />
    <TextBlock FontFamily="{StaticResource FontAwesome}"
               Margin="5"
               FontSize="18"
               Text="{x:Static fa:FontAwesome.github}" />
    <TextBlock FontFamily="{StaticResource FontAwesome}"
               Margin="5"
               FontSize="24"
               Text="{x:Static fa:FontAwesome.github}" />
    <TextBlock FontFamily="{StaticResource FontAwesome}"
               Margin="5"
               FontSize="32"
               Text="{x:Static fa:FontAwesome.github}" />
    <TextBlock FontFamily="{StaticResource FontAwesome}"
               Margin="5"
               FontSize="40"
               Text="{x:Static fa:FontAwesome.github}" />
  </StackPanel>
</UserControl>

Results in:

Result

About

A (very) simple wrapper for Font Awesome, facilitating use in .net desktop projects

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages