![]() |
VOOZH | about |
dotnet add package Material.Icons.WinUI3 --version 3.0.2
NuGet\Install-Package Material.Icons.WinUI3 -Version 3.0.2
<PackageReference Include="Material.Icons.WinUI3" Version="3.0.2" />
<PackageVersion Include="Material.Icons.WinUI3" Version="3.0.2" />Directory.Packages.props
<PackageReference Include="Material.Icons.WinUI3" />Project file
paket add Material.Icons.WinUI3 --version 3.0.2
#r "nuget: Material.Icons.WinUI3, 3.0.2"
#:package Material.Icons.WinUI3@3.0.2
#addin nuget:?package=Material.Icons.WinUI3&version=3.0.2Install as a Cake Addin
#tool nuget:?package=Material.Icons.WinUI3&version=3.0.2Install as a Cake Tool
Parsed icons set from materialdesignicons.com and display control implementations for different GUI frameworks.
This project consists of 3 parts:
👁 alternate text is missing from this package README image
contains info about the icons
👁 alternate text is missing from this package README image
contains controls for AvaloniaUI
👁 alternate text is missing from this package README image
contains controls for WPF
👁 alternate text is missing from this package README image
contains controls for WinUI3
FAQ - frequently asked questions
dotnet add package Material.Icons.Avalonia
👁 avalonia-nugetApp.xaml (for 2.0.0 version and higher):
<Application xmlns:materialIcons="clr-namespace:Material.Icons.Avalonia;assembly=Material.Icons.Avalonia"
...>
<Application.Styles>
...
<materialIcons:MaterialIconStyles />
</Application.Styles>
</Application>
Add Material.Icons.Avalonia namespace to the root element of your file (your IDE can suggest it or do it automatically):
xmlns:materialIcons="clr-namespace:Material.Icons.Avalonia;assembly=Material.Icons.Avalonia"
Use MaterialIcon control:
<materialIcons:MaterialIcon Kind="Abacus" />
The Foreground property controls the color of the icon.
Also, there is MaterialIconExt which allows you to use is as the markup extension:
<Button Content="{materialIcons:MaterialIconExt Kind=Abacus}" />
Or with a text via MaterialIconTextExt:
<Button Content="{materialIcons:MaterialIconTextExt Kind=Play, Text=Play}" />
The MaterialIcon implements IImage interface, to allow to use as an Image source:
<Image>
<materialIcons:MaterialIcon Foreground="DeepPink" Kind="Abacus" />
</Image>
<Image Source="{materialIcons:MaterialIconExt Kind=Abacus, IconForeground=DeepPink}" />
Note that when using MaterialIcon as an Image source, the Width and Height properties must be defined under <Image>,
any size definition on MaterialIcon have no impact. Also, animation are not supported in this use case.
{x:Null}(Default) icons will not reserve space for it in layout.dotnet add package Material.Icons.Avalonia
👁 avalonia-nugettype App() =
inherit Application()
override this.Initialize() =
..
this.Styles.Add(MaterialIconStyles(null))
..
MaterialIcon
namespace Avalonia.FuncUI.DSL
[<AutoOpen>]
module MaterialIcon =
open Material.Icons
open Material.Icons.Avalonia
open Avalonia.FuncUI.Types
open Avalonia.FuncUI.Builder
let create (attrs: IAttr<MaterialIcon> list): IView<MaterialIcon> =
ViewBuilder.Create<MaterialIcon>(attrs)
type MaterialIcon with
static member kind<'t when 't :> MaterialIcon>(value: MaterialIconKind) : IAttr<'t> =
AttrBuilder<'t>.CreateProperty<MaterialIconKind>(MaterialIcon.KindProperty, value, ValueNone)
Button.create [
Button.content (
MaterialIcon.create [
MaterialIcon.kind MaterialIconKind.Export
]
)
]
Install Material.Icons.WPF nuget package:
dotnet add package Material.Icons.WPF
Add Material.Icons.WPF namespace to the root element of your file (your IDE can suggest it or do it automatically):
xmlns:materialIcons="clr-namespace:Material.Icons.WPF;assembly=Material.Icons.WPF"
Use MaterialIcon control:
<materialIcons:MaterialIcon Kind="Abacus" />
The Foreground property controls the color of the icon.
Also, there is MaterialIconExt which allows you to use is as the markup extension:
<Button Content="{materialIcons:MaterialIconExt Kind=Abacus}" />
Install Material.Icons.WinUI3 nuget package:
dotnet add package Material.Icons.WinUI3
Add Material.Icons.WinUI3 namespace to the root element of your file (your IDE can suggest it or do it automatically):
xmlns:materialIcons="using:Material.Icons.WinUI3"
Use MaterialIcon control:
<materialIcons:MaterialIcon Kind="Abacus" />
The Foreground property controls the color of the icon.
Also, there is MaterialIconExt which allows you to use is as the markup extension:
<Button Content="{materialIcons:MaterialIconExt Kind=Abacus}" />
Install Material.Icons nuget package:
dotnet add package Material.Icons
Icon types stored in Material.Icons.MaterialIconKind enum.
We can resolve an icon path by using Material.Icons.MaterialIconDataProvider.GetData().
Currently, there is no way to add your own icons, as icons are enum and cannot be modified.
But you can override some existing icons to use your own data:
public class CustomIconProvider : MaterialIconDataProvider
{
public override string ProvideData(MaterialIconKind kind)
{
return kind switch
{
MaterialIconKind.TrophyVariant => "some SVG code",
_ => base.ProvideData(kind)
};
}
}
// When your application starts (e.g. in the Main method) replace MaterialIconDataProvider with your own
public static int Main(string[] args)
{
MaterialIconDataProvider.Instance = new CustomIconProvider(); // Settings custom provider
// Application startup code
// return BuildAvaloniaApp().StartWithClassicDesktopLifetime(args);
}
MaterialIcon and it extensions supports pre-defined animations:
<MaterialIcons:MaterialIcon Kind="Refresh" Animation="Spin" />
<MaterialIcons:MaterialIcon Kind="Heart" Foreground="DeepPink" Animation="FadeInOut" />
Foreground property.MaterialIcon control - use Width or/and Height properties.MaterialIconExt - use Size property.Material.Icons package version in your project file.1.0.0 and 1.0.1 are compatible, but 1.0.0 and 1.1.0 might not be.| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0-windows10.0.18362 net8.0-windows10.0.18362 is compatible. net9.0-windows net9.0-windows was computed. net10.0-windows net10.0-windows was computed. |
This package is not used by any NuGet packages.
Showing the top 1 popular GitHub repositories that depend on Material.Icons.WinUI3:
| Repository | Stars |
|---|---|
|
memstechtips/Winhance
Application designed to optimize, customize and enhance your Windows experience.
|
| Version | Downloads | Last Updated |
|---|---|---|
| 3.0.3-nightly.0.2 | 68 | 4/13/2026 |
| 3.0.3-nightly.0.1 | 67 | 4/13/2026 |
| 3.0.2 | 219 | 4/13/2026 |
| 3.0.1 | 112 | 4/7/2026 |
| 3.0.0 | 170 | 2/19/2026 |
| 3.0.0-preview7.5 | 70 | 2/19/2026 |
| 3.0.0-preview7.4 | 66 | 2/19/2026 |
| 3.0.0-preview7 | 126 | 2/7/2026 |
| 3.0.0-preview6 | 121 | 1/17/2026 |
| 3.0.0-preview5 | 210 | 12/25/2025 |
| 3.0.0-avalonia12 | 124 | 2/19/2026 |
| 2.4.3 | 112 | 4/13/2026 |
## What's Changed
* Fix icons being bigger in 3.0.0 by @SKProCH in https://github.com/SKProCH/Material.Icons/pull/73
**Full Changelog**: https://github.com/SKProCH/Material.Icons/compare/v2.4.2...v3.0.2