Material.Icons 2.4.1

There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Material.Icons --version 2.4.1
                    
NuGet\Install-Package Material.Icons -Version 2.4.1
                    
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="Material.Icons" Version="2.4.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Material.Icons" Version="2.4.1" />
                    
Directory.Packages.props
<PackageReference Include="Material.Icons" />
                    
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 Material.Icons --version 2.4.1
                    
#r "nuget: Material.Icons, 2.4.1"
                    
#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.
#addin nuget:?package=Material.Icons&version=2.4.1
                    
Install Material.Icons as a Cake Addin
#tool nuget:?package=Material.Icons&version=2.4.1
                    
Install Material.Icons as a Cake Tool

Material.Icons

Parsed icons set from materialdesignicons.com and display control implementations for different GUI frameworks.

  • All icons are always up-to-date because automatically updated every 6 hours.
  • Small package size because icons are graphically encoded via SVG Path.
  • Icon types are strongly typed enum, so your IDE will suggest available variants:
    895428ad-6010-4ffd-bd88-61aecd50f5e1

Structure

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

Community maintained

  • alternate text is missing from this package README image contains controls for WinUI/UNO (separate repository)

Avalonia

Getting started
  1. Install Material.Icons.Avalonia nuget package:
    dotnet add package Material.Icons.Avalonia
    
    avalonia-nuget avalonia-nuget
  2. Include styles in App.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>
    
Using

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}" />

Avalonia FuncUI (F#)

Getting started
  1. Install Material.Icons.Avalonia nuget package:
    dotnet add package Material.Icons.Avalonia
    
    avalonia-nuget avalonia-nuget
  2. Import styles in Application (or if you use XAML check instructions for plain Avalonia)
    type App() =
        inherit Application()
    
        override this.Initialize() =
            ..
            this.Styles.Add(MaterialIconStyles(null))
            ..
    
  3. Create bindings for 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)
    
  4. Use
    Button.create [
         Button.content (
             MaterialIcon.create [
                 MaterialIcon.kind MaterialIconKind.Export
            ]
        )
    ]
    

WPF

Getting started

Install Material.Icons.WPF nuget package:

dotnet add package Material.Icons.WPF

wpf-nuget wpf-nuget

Using

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}" />

WinUI3

Getting started

Install Material.Icons.WinUI3 nuget package:

dotnet add package Material.Icons.WinUI3

winui3-nuget winui3-nuget

Using

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}" />

Meta

Getting started

Install Material.Icons nuget package:

dotnet add package Material.Icons

icons-nuget icons-nuget

Using

Icon types stored in Material.Icons.MaterialIconKind enum.
We can resolve an icon path by using Material.Icons.MaterialIconDataProvider.GetData().

Adding your own icons

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);
}

Animations

MaterialIcon and it extensions supports pre-defined animations:

  • None
  • Spin (Circular spinning)
  • SpinCcw (Circular spinning in CCW)
  • Pulse (Step circular spinning)
  • PulseCcw (Step circular spinning in CCW)
  • FadeOutIn (Fade out and in)
  • FadeInOut (Fade in and out)
<MaterialIcons:MaterialIcon Kind="Refresh" Animation="Spin" />
<MaterialIcons:MaterialIcon Kind="Heart" Foreground="DeepPink" Animation="FadeInOut" />

FAQ

How to change icon color?
  • Change Foreground property.
How to change size?
  • If you are using MaterialIcon control - use Width or/and Height properties.
  • If you are using MaterialIconExt - use Size property.
How to update icons?
  • You can manually set Material.Icons package version in your project file.
What about versioning policy?
  • We use semver.
    Any package with identical major and minor versions is compatible.
    For example, 1.0.0 and 1.0.1 are compatible, but 1.0.0 and 1.1.0 might not be.
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.0

    • No dependencies.

NuGet packages (8)

Showing the top 5 NuGet packages that depend on Material.Icons:

Package Downloads
Material.Icons.Avalonia

Avalonia control for display material icons from Material.Icons

Speckle.Material.Icons.Avalonia

Avalonia control for display material icons from Material.Icons

Material.Icons.WPF

WPF control for display material icons from Material.Icons

Material.Icons.WinUI3

WinUI control for display material icons from Material.Icons

Material.Icons.UNO

Icones Material Design para UNO e WinUI

GitHub repositories (3)

Showing the top 3 popular GitHub repositories that depend on Material.Icons:

Repository Stars
h4lfheart/FortnitePorting
Automation of the Fortnite Porting Process
dorisoy/Dorisoy.SMS
基于.net6.0的跨平台WPF学校信息管理系统,现代化UI界面、简单易用的功能让您完全控制管理学生、员工、用户、家长、班级、费用,收入信息、生物识别职工打卡,学生上学/离校信息推送等等, 项目使用MVVM 和Mediator设计模式。
qiuqiuqiu131/SukiChat.Client
Version Downloads Last updated
3.0.0-preview1.1 103 5/1/2025
2.4.1 1,230 4/27/2025
2.4.0 1,565 4/21/2025
2.3.1 12,960 3/8/2025
2.3.0 2,145 3/2/2025
2.2.0 14,299 1/21/2025
2.1.12 1,360 1/20/2025
2.1.11 166 1/16/2025
2.1.10 88,944 6/20/2024
2.1.9 22,790 4/4/2024
2.1.8 368 4/1/2024
2.1.7 146 4/1/2024
2.1.6 1,780 1/18/2024
2.1.5 887 1/2/2024
2.1.4 529 12/19/2023
2.1.3 265 12/15/2023
2.1.2 136 12/14/2023
2.1.1 178 12/12/2023
2.1.0 48,731 12/9/2023
2.0.18 144 12/9/2023
2.0.17 140 12/8/2023
2.0.16 229 12/6/2023
2.0.15 164 12/5/2023
2.0.14 176 12/5/2023
2.0.13 235 12/2/2023
2.0.12 1,414 10/25/2023
2.0.11 1,427 8/16/2023
2.0.10 193 8/15/2023
2.0.9 180 8/15/2023
2.0.8 183 8/14/2023
2.0.7 183 8/13/2023
2.0.6 280 8/9/2023
2.0.5 467 7/11/2023
2.0.4 547 6/12/2023
2.0.3 37,801 5/14/2023
2.0.2 2,105 5/10/2023
2.0.1 206 5/9/2023
2.0.0 7,075 5/4/2023
2.0.0-preview1.3 2,808 3/9/2023
2.0.0-preview1.2 128 3/2/2023
2.0.0-preview1.1 129 3/1/2023
2.0.0-preview1 826 1/23/2023
1.1.35 68,538 1/21/2023
1.1.34 342 1/19/2023
1.1.33 383 1/13/2023
1.1.32 2,555 1/4/2023
1.1.31 381 12/30/2022
1.1.30 355 12/29/2022
1.1.29 341 12/28/2022
1.1.28 350 12/27/2022
1.1.27 355 12/23/2022
1.1.26 357 12/22/2022
1.1.25 766 12/19/2022
1.1.24 345 12/19/2022
1.1.23 338 12/15/2022
1.1.22 446 12/5/2022
1.1.21 363 12/5/2022
1.1.20 424 11/21/2022
1.1.19 1,094 10/14/2022
1.1.18 780 10/1/2022
1.1.17 594 9/15/2022
1.1.16 480 9/10/2022
1.1.15 2,700 8/25/2022
1.1.14 543 8/9/2022
1.1.13 869 7/17/2022
1.1.12 490 7/15/2022
1.1.11 474 7/14/2022
1.1.10 51,235 7/12/2022
1.1.9 488 7/9/2022
1.1.8 500 7/6/2022
1.1.7 517 7/1/2022
1.1.6 559 6/23/2022
1.1.5 502 6/23/2022
1.1.4 477 6/22/2022
1.1.3 503 6/16/2022
1.1.2 482 6/15/2022
1.1.1 459 6/14/2022
1.1.0 954 6/9/2022
1.0.105 566 5/26/2022
1.0.104 494 5/26/2022
1.0.103 482 5/25/2022
1.0.102 464 5/25/2022
1.0.101 483 5/21/2022
1.0.100 458 5/20/2022
1.0.99 509 5/17/2022
1.0.98 478 5/16/2022
1.0.97 527 5/7/2022
1.0.96 488 5/6/2022
1.0.95 493 4/27/2022
1.0.94 656 4/5/2022
1.0.93 490 4/3/2022
1.0.92 489 4/2/2022
1.0.91 506 4/2/2022
1.0.90 507 3/30/2022
1.0.89 491 3/30/2022
1.0.88 501 3/26/2022
1.0.87 483 3/25/2022
1.0.86 476 3/25/2022
1.0.85 487 3/24/2022
1.0.84 491 3/24/2022
1.0.83 628 3/21/2022
1.0.82 493 3/21/2022
1.0.76 721 2/8/2022
1.0.75 529 2/1/2022
1.0.74 528 1/29/2022
1.0.73 530 1/25/2022
1.0.72 519 1/24/2022
1.0.71 508 1/23/2022
1.0.70 518 1/22/2022
1.0.69 495 1/22/2022
1.0.68 1,847 1/4/2022
1.0.67 357 12/29/2021
1.0.66 493 12/8/2021
1.0.65 350 12/4/2021
1.0.64 4,866 11/24/2021
1.0.63 357 11/16/2021
1.0.62 420 11/14/2021
1.0.61 387 11/12/2021
1.0.60 402 11/4/2021
1.0.59 409 11/4/2021
1.0.58 414 11/2/2021
1.0.57 429 10/27/2021
1.0.56 452 10/15/2021
1.0.55 423 10/15/2021
1.0.54 394 10/14/2021
1.0.53 404 10/13/2021
1.0.52 400 10/12/2021
1.0.51 414 10/8/2021
1.0.50 390 10/7/2021
1.0.49 388 10/6/2021
1.0.48 374 10/6/2021
1.0.47 402 10/5/2021
1.0.46 543 10/3/2021
1.0.45 418 9/25/2021
1.0.44 454 9/24/2021
1.0.43 392 9/23/2021
1.0.42 419 9/22/2021
1.0.41 412 9/21/2021
1.0.40 440 9/21/2021
1.0.39 403 9/17/2021
1.0.38 419 9/16/2021
1.0.37 429 9/16/2021
1.0.36 407 9/15/2021
1.0.35 445 9/15/2021
1.0.34 416 9/14/2021
1.0.33 424 9/14/2021
1.0.32 431 9/7/2021
1.0.31 463 9/5/2021
1.0.30 428 9/4/2021
1.0.29 435 9/4/2021
1.0.28 425 9/3/2021
1.0.27 413 9/2/2021
1.0.26 433 9/2/2021
1.0.25 423 9/1/2021
1.0.24 422 8/31/2021
1.0.23 417 8/30/2021
1.0.22 426 8/26/2021
1.0.21 415 8/26/2021
1.0.20 386 8/25/2021
1.0.19 391 8/25/2021
1.0.18 418 8/21/2021
1.0.17 408 8/12/2021
1.0.16 453 7/29/2021
1.0.15 446 7/28/2021
1.0.14 418 7/27/2021
1.0.13 469 7/13/2021
1.0.12 498 5/21/2021
1.0.11 469 5/8/2021
1.0.10 416 4/27/2021
1.0.9 434 4/9/2021
1.0.8 25,020 3/20/2021
1.0.7 449 3/9/2021
1.0.6 448 3/6/2021
1.0.5 449 3/5/2021
1.0.4 594 2/12/2021
1.0.3 464 2/9/2021
1.0.2 31,304 2/6/2021
1.0.1 469 2/6/2021
1.0.0 6,262 1/21/2021

- Icons set updated according to materialdesignicons.com at Sat, 08 Mar 2025 12:16:04 GMT
Check out changes at https://pictogrammers.com/library/mdi/history/