• Stars
    star
    181
  • Rank 212,110 (Top 5 %)
  • Language
    C#
  • License
    MIT License
  • Created about 6 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Easily use FontAwesome icon codes in C#.

About

Last Generated for FontAwesome v6.4.0 on May 12, 2023 4:13:18 PM (UTC)

Use FontAwesomeIcons.cs to replace confusing and arcane unicode strings with a clean and descriptive property.

This:

// Huh? What icon is this? What font is it from? 😭
submitButton.Text = "/uf00c";

Becomes this:

// Obviously a check icon from FontAwesome! πŸ˜ŠπŸ‘
submitButton.Text = FontAwesome.FontAwesomeIcons.Check;

The end result is cleaner, more readable and more maintainable code.

Get FontAwesomeIcons.cs here

Download the FontAwesome font assets here

Using FontAwesome To C#

It's super easy to use FontAwesome To C#!

Simply download FontAwesomeIcons.cs and place it into your project.

Ensure that you have added the FontAwesome font files into your projects.

You can use an icon in C# like:

var checkIcon = FontAwesome.FontAwesomeIcons.Check;

You can use an icon in XAML by:

  • Adding a namespace reference to FontAwesome: xmlns:fontAwesome="clr-namespace:FontAwesome"
  • Referencing a icon using x:Static: <Label Text="{x:Static fontAwesome:FontAwesomeIcons.Check}"/>

Voila! All done!

Using Material Design Icons?

If you're using the Material Design icon set, check out md2cs, a static class file containing string constants for all Material Design icon codes.

More Repositories

1

Neural-Network

A demonstration of Neural Networks and Genetic Algorithms using C++.
C++
90
star
2

UnityUaal.Maui

Embedding the Unity game engine into .NET MAUI.
C#
63
star
3

md2cs

Easily use Google's Material Design icon codes in C#.
C#
35
star
4

SqlLitePerf.Maui

Tips and tricks for writing blistering fast MAUI apps that use SQLite.
C#
30
star
5

font-icons-in-xamarin-forms

Stop the bitmap apocalypse! Use custom fonts (such as FontAwesome) to create resizable, recolorable icons throughout your app 🀘
C#
19
star
6

xamarin-forms-in-visual-studio-mac

A proof of concept Visual Studio Mac extension that demonstrates how to use Xamarin.Forms to build VS Mac UIs.
C#
13
star
7

building-addins-for-xamarin-studio

Accompanying source code for the Xamarin University guest lecture, "Building Addins For Xamarin Studio".
C#
11
star
8

Software-Renderer

A software renderer written in C++.
C++
8
star
9

xamarin.forms-jint

Adding JavaScript support to your Xamarin.Forms app.
C#
7
star
10

Xamarin.Forms.GridLocationExtension

Specify grid locations by name for simpler, more maintainable XAML.
C#
4
star
11

VSMac.FastGuid

Quickly create new GUIDs via Visual Studio Macs search bar.
C#
3
star
12

monodevelop-addin-packager

Tooling to assist in the development of MonoDevelop Addins.
C#
3
star
13

xamarin-android-string-extractor

C#
2
star
14

introduction-to-roslyn

The source code for the Xamarin University lecture, Introduction to Roslyn
C#
2
star
15

custom-controls-in-xamarin-forms

A short guide on writing your own custom controls in Xamarin.Forms
C#
2
star
16

xamarin-android-open-layout-definition

Helper utility that opens the layout definition beneath the cursor.
C#
2
star
17

ImageCaching.Maui

A rudimentary image caching proof of concept for MAUI.
C#
2
star
18

NIUI-Kinect-API

C++
1
star
19

XFvsMaui

Comparing an apps performance, memory usage and rendering stress between Xamarin.Forms and MAUI.
1
star
20

AuthenticatedUriImageSource.Maui

Downloading images that require with HTTP authentication in .NET MAUI.
C#
1
star