MAUIverse MAUIverse

FontAwesome Duotone icons in MAUI and Xamarin.Forms

Font Awesome is an easy way to add icons to a mobile app, and the Duotone set adds a second color for depth. Pieter Nijs starts with the basics for both frameworks. In Xamarin.Forms you embed the font file and register it with ExportFont, while in .NET MAUI you add it through ConfigureFonts in MauiProgram.cs. After that, a Label with the right FontFamily and icon name does the job.

For Duotone icons, each icon has two layers. Adding # to the icon name renders the first layer, and ## renders the second. Pieter shows three labels in different colors, then stacks the two layers in a Grid so they appear as one icon in two colors.

It’s a short, practical recipe if you use Font Awesome Pro and want to move beyond single-color icons.

View Source →

← Back to Community Feed

}