Skip to content

Using Icons

Chris Perry edited this page Jan 11, 2024 · 1 revision

Details

Icons in the FocusApp application are a collection of Unicode escape sequence properties defined as two classes with properties for each icon.

  • They're found at the namespace: FocusApp.Resources.FontAwesomeIcons
  • All icons are from Font Awesome
  • There are two collections of icon types
    • SolidIcons (Font Awesome Solid pack)
    • LineArtIcons (Font Awesome Regular pack)
  • The files were generated using this tool for translating IconFont into C# code

Usage

FocusApp.Resouces.FontAwesomeIcons.{IconPack}.{IconName}

Examples

using FocusApp.Resources.FontAwesomeIcons

...

new Label
{
    Text = SolidIcons.Anchor,
    FontFamily = nameof(SolidIcons)
},
new Label
{
    Text = SolidIcons.Anchor,
    FontFamily = nameof(LineArtIcons)
}

...