HandKit.Maui.MaterialIcons 1.0.0

dotnet add package HandKit.Maui.MaterialIcons --version 1.0.0
                    
NuGet\Install-Package HandKit.Maui.MaterialIcons -Version 1.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="HandKit.Maui.MaterialIcons" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="HandKit.Maui.MaterialIcons" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="HandKit.Maui.MaterialIcons" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add HandKit.Maui.MaterialIcons --version 1.0.0
                    
#r "nuget: HandKit.Maui.MaterialIcons, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package HandKit.Maui.MaterialIcons@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=HandKit.Maui.MaterialIcons&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=HandKit.Maui.MaterialIcons&version=1.0.0
                    
Install as a Cake Tool

HandKit.Maui.MaterialIcons

icon

NuGet .NET MAUI License: MIT

Platform Platform Platform Platform

A comprehensive Material Icons font library for .NET MAUI applications.

Overview

This library provides a seamless way to integrate Google's Material Icons (Outlined and Filled) into your .NET MAUI projects.

Features

  • Easy Integration: Simple registration method in MauiProgram.cs.
  • Dual Styles: Includes both Outlined and Filled variants of Material Symbols.
  • Customizable Alias: Support for custom font family aliases to avoid conflicts.
  • Broad Compatibility: Supports Android, iOS, macOS, and Windows.

Installation

Install the package via NuGet:

Install-Package HandKit.Maui.MaterialIcons

Usage

1. Register the Fonts

In your MauiProgram.cs, call UseMaterialIcons() on the MauiAppBuilder:

using HandKit.Maui.MaterialIcons; // Add this namespace

public static class MauiProgram
{
    public static MauiApp CreateMauiApp()
    {
        var builder = MauiApp.CreateBuilder();
        builder
            .UseMauiApp<App>()
            .UseMaterialIcons() // <-- Register the fonts here
            .ConfigureFonts(fonts =>
            {
                fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
                fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
            });

        return builder.Build();
    }
}

By default, this registers the fonts with the alias "Icon".

2. Use in XAML

You can use the fonts by referencing the FontFamily.

Default Aliases:
  • Outlined: Icon
  • Filled: IconFilled

<Label Text="notifications" 
       FontFamily="Icon" 
       FontSize="32" />


<Label Text="notifications" 
       FontFamily="IconFilled" 
       FontSize="32" />

Advanced Usage (Custom Alias)

If you prefer a different font family name, you can pass it to the UseMaterialIcons method:

// Registers "MyIcon" and "MyIconFilled"
builder.UseMaterialIcons("MyIcon");

Then in XAML:

<Label Text="home" FontFamily="MyIcon" FontSize="32" />
<Label Text="home" FontFamily="MyIconFilled" FontSize="32" />

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

Contact

If you have any questions or suggestions, please feel free to contact me at andyapin@gmail.com

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-android36.0 is compatible.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-ios26.0 is compatible.  net10.0-maccatalyst was computed.  net10.0-maccatalyst26.0 is compatible.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed.  net10.0-windows10.0.19041 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 100 2/20/2026