Plugin.Toolkit.Fonts.MaterialIcons
1.0.1
dotnet add package Plugin.Toolkit.Fonts.MaterialIcons --version 1.0.1
NuGet\Install-Package Plugin.Toolkit.Fonts.MaterialIcons -Version 1.0.1
<PackageReference Include="Plugin.Toolkit.Fonts.MaterialIcons" Version="1.0.1" />
paket add Plugin.Toolkit.Fonts.MaterialIcons --version 1.0.1
#r "nuget: Plugin.Toolkit.Fonts.MaterialIcons, 1.0.1"
// Install Plugin.Toolkit.Fonts.MaterialIcons as a Cake Addin #addin nuget:?package=Plugin.Toolkit.Fonts.MaterialIcons&version=1.0.1 // Install Plugin.Toolkit.Fonts.MaterialIcons as a Cake Tool #tool nuget:?package=Plugin.Toolkit.Fonts.MaterialIcons&version=1.0.1
Plugin.Toolkit.Fonts.MaterialIcons
A comprehensive Material Icons font library for MAUI C# applications.
Overview
This repository provides a convenient way to incorporate Google's Material Icons into your MAUI C# projects. Whether you're building mobile, desktop, or web applications, this library offers a wide range of icons to enhance your user interface.
Features
- Easy to use: Seamless integration into your MAUI projects.
- Comprehensive: Includes a vast collection of Material Icons.
- Customizable: Customize the appearance of icons to match your branding.
- Performance optimized: Ensures smooth performance in your applications.
Installation
You can install the plugin via NuGet:
Install-Package Plugin.Toolkit.Fonts.MaterialIcons
Usage
Register the font:
In your
MauiProgram.cs
file:using Plugin.Toolkit.Fonts.MaterialIcons; public static class MauiProgram { public static MauiApp CreateMauiApp() { var builder = MauiApp.CreateBuilder(); builder .UseMauiApp<App>() .ConfigureFonts(fonts => { fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular"); fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold"); fonts.AddMaterialIconsFonts(); // <-- add this }); return builder.Build(); } }
Use the font in XAML:
<Label Text="notifications" FontFamily="Icon" FontSize="32" /> <Label Text="notifications" FontFamily="IconFilled" FontSize="32" />
Or with Style:
<Style TargetType="Label" x:Key="IconLabelStyle"> <Setter Property="FontFamily" Value="Icon"/> <Setter Property="FontSize" Value="32"/> </Style> <Label Text="notifications" Style="{StaticResource IconLabelStyle}"/>
Example Project
The repository includes a sample MAUI project demonstrating the usage of the plugin. You can find it in the samples
directory.
Contributing
Contributions are welcome! Please open an issue or submit a pull request.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-android34.0 is compatible. net8.0-browser was computed. net8.0-ios was computed. net8.0-ios18.0 is compatible. net8.0-maccatalyst was computed. net8.0-maccatalyst18.0 is compatible. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net8.0-windows10.0.19041 is compatible. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
-
net8.0
- Microsoft.Maui.Controls (>= 8.0.83)
- Microsoft.Maui.Controls.Compatibility (>= 8.0.83)
-
net8.0-android34.0
- Microsoft.Maui.Controls (>= 8.0.83)
- Microsoft.Maui.Controls.Compatibility (>= 8.0.83)
-
net8.0-ios18.0
- Microsoft.Maui.Controls (>= 8.0.83)
- Microsoft.Maui.Controls.Compatibility (>= 8.0.83)
-
net8.0-maccatalyst18.0
- Microsoft.Maui.Controls (>= 8.0.83)
- Microsoft.Maui.Controls.Compatibility (>= 8.0.83)
-
net8.0-windows10.0.19041
- Microsoft.Maui.Controls (>= 8.0.83)
- Microsoft.Maui.Controls.Compatibility (>= 8.0.83)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.