Effortlessly integrate Material Design Icons into your .NET MAUI apps with font and C# mappings.
Install via NuGet:
dotnet add package AjroudSoftwares.MaterialDesignIconsThe following files are automatically copied to your project:
Resources/Fonts/MaterialDesignIcons.ttf— the icon fontResources/Fonts/MaterialIcons.cs— C# constants for icon glyphs
Register the font in MauiProgram.cs:
builder.ConfigureFonts(fonts =>
{
fonts.AddFont("MaterialDesignIcons.ttf", "MaterialIcons");
});Add the namespace:
xmlns:mdi="clr-namespace:MaterialDesignIcons"Use the icon:
<Label Text="{x:Static mdi:MaterialIcons.Account}"
FontFamily="MaterialIcons"
FontSize="32" />
<!-- Or as a FontImageSource -->
<FontImageSource x:Key="IconAccount"
Glyph="{x:Static mdi:MaterialIcons.Account}"
FontFamily="MaterialIcons"
Size="32" />using MaterialDesignIcons;
var iconLabel = new Label
{
Text = MaterialIcons.Account,
FontFamily = "MaterialIcons",
FontSize = 32
};- Author: Aymen Ajroud
- Company: AjroudSoftwares
- License: MIT
- Version: 1.0.0
This project is licensed under the MIT License.
Feel free to use, modify, and distribute it with proper attribution.
✨ Enjoy beautiful Material Design Icons in your .NET MAUI app!