IconFont.Maui.MaterialDesignIcons
1.0.1
dotnet add package IconFont.Maui.MaterialDesignIcons --version 1.0.1
NuGet\Install-Package IconFont.Maui.MaterialDesignIcons -Version 1.0.1
<PackageReference Include="IconFont.Maui.MaterialDesignIcons" Version="1.0.1" />
<PackageVersion Include="IconFont.Maui.MaterialDesignIcons" Version="1.0.1" />
<PackageReference Include="IconFont.Maui.MaterialDesignIcons" />
paket add IconFont.Maui.MaterialDesignIcons --version 1.0.1
#r "nuget: IconFont.Maui.MaterialDesignIcons, 1.0.1"
#:package IconFont.Maui.MaterialDesignIcons@1.0.1
#addin nuget:?package=IconFont.Maui.MaterialDesignIcons&version=1.0.1
#tool nuget:?package=IconFont.Maui.MaterialDesignIcons&version=1.0.1
IconFont.Maui.MaterialDesignIcons
IconFont.Maui.MaterialDesignIcons ships four Google Material Design Icons OTF icon fonts for .NET MAUI:
| Style | File | Class |
|---|---|---|
| Outlined | MaterialIconsOutlined-Regular.otf |
MaterialDesignIconsOutlined |
| Round | MaterialIconsRound-Regular.otf |
MaterialDesignIconsRound |
| Sharp | MaterialIconsSharp-Regular.otf |
MaterialDesignIconsSharp |
| Two-Tone | MaterialIconsTwoTone-Regular.otf |
MaterialDesignIconsTwoTone |
It registers the fonts across supported targets when you call UseMaterialDesignIcons() (or individual helpers) and exposes strongly-typed glyph constants to simplify XAML and C# usage.
✨ Features
- ⚙️ One-line setup: call
builder.UseMaterialDesignIcons()to register all fonts, or per-font helpers likeUseMaterialDesignIconsOutlined(),UseMaterialDesignIconsRound(), etc. - 🔤 Strongly-typed glyphs via flat classes:
MaterialDesignIconsOutlined.Home,MaterialDesignIconsRound.Search, etc. - 📱 Supported targets: Android, iOS, Mac Catalyst, Windows
📦 Install
dotnet add package IconFont.Maui.MaterialDesignIcons
🚀 Getting Started
Register
var builder = MauiApp.CreateBuilder()
.UseMauiApp<App>()
.UseMaterialDesignIcons(); // registers all four font styles
Or register individual fonts:
builder.UseMaterialDesignIconsOutlined(); // Outlined only
builder.UseMaterialDesignIconsRound(); // Round only
builder.UseMaterialDesignIconsSharp(); // Sharp only
builder.UseMaterialDesignIconsTwoTone(); // Two-Tone only
XAML usage
xmlns:icons="clr-namespace:IconFont.Maui.MaterialDesignIcons;assembly=IconFont.Maui.MaterialDesignIcons"
<Label Glyph="{x:Static icons:MaterialDesignIconsOutlined.Home}"
FontFamily="{x:Static icons:MaterialDesignIconsOutlined.FontFamily}"
FontSize="32" />
C# usage
using IconFont.Maui.MaterialDesignIcons;
var label = new Label
{
FontFamily = MaterialDesignIconsOutlined.FontFamily,
Text = MaterialDesignIconsOutlined.Home,
FontSize = 32
};
Tip: Glyph names follow the upstream font. If the font adds/changes glyphs, updating the OTF and rebuilding regenerates this API.
📋 Styles & Glyphs
The source generator emits flat top-level classes for XAML {x:Static} compatibility:
| Class | Example |
|---|---|
MaterialDesignIconsOutlined |
MaterialDesignIconsOutlined.Home |
MaterialDesignIconsRound |
MaterialDesignIconsRound.Home |
MaterialDesignIconsSharp |
MaterialDesignIconsSharp.Home |
MaterialDesignIconsTwoTone |
MaterialDesignIconsTwoTone.Home |
❓ Why not Filled?
The classic Material Icons "Filled" style is only distributed as a TTF with post table version 3.0 (no glyph names). The source generator extracts glyph names from font metadata, so only the four OTF styles are supported. All four OTF styles contain the same icon set with the same codepoints.
🧩 Platforms
| Platform | Minimum |
|---|---|
| Android | 21+ |
| iOS | 15+ |
| macOS | 12+ |
| Windows | 10 1809 |
📄 License
- Library: MIT
- Font: Apache 2.0 © Google (see NOTICE.md and Apache License 2.0)
🙏 Attribution
- Upstream font: Apache 2.0 © Google LLC
- This project is not affiliated with or endorsed by Google.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0-android36.0 is compatible. net10.0-ios26.0 is compatible. net10.0-maccatalyst26.0 is compatible. net10.0-windows10.0.19041 is compatible. |
-
net10.0-android36.0
- Microsoft.Maui.Controls (>= 10.0.20)
-
net10.0-ios26.0
- Microsoft.Maui.Controls (>= 10.0.20)
-
net10.0-maccatalyst26.0
- Microsoft.Maui.Controls (>= 10.0.20)
-
net10.0-windows10.0.19041
- Microsoft.Maui.Controls (>= 10.0.20)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.