Material.Icons 2.3.1

dotnet add package Material.Icons --version 2.3.1
                    
NuGet\Install-Package Material.Icons -Version 2.3.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.3.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Material.Icons" Version="2.3.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.3.1
                    
#r "nuget: Material.Icons, 2.3.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.3.1
                    
Install Material.Icons as a Cake Addin
#tool nuget:?package=Material.Icons&version=2.3.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);
}

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.UNO

Icones Material Design para UNO e WinUI

Material.Icons.WinUI3

WinUI control for display material icons from Material.Icons

GitHub repositories (2)

Showing the top 2 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设计模式。
Version Downloads Last updated
2.3.1 4,334 3/8/2025
2.3.0 1,735 3/2/2025
2.2.0 11,522 1/21/2025
2.1.12 1,078 1/20/2025
2.1.11 144 1/16/2025
2.1.10 82,274 6/20/2024
2.1.9 21,953 4/4/2024
2.1.8 366 4/1/2024
2.1.7 144 4/1/2024
2.1.6 1,750 1/18/2024
2.1.5 882 1/2/2024
2.1.4 520 12/19/2023
2.1.3 263 12/15/2023
2.1.2 134 12/14/2023
2.1.1 176 12/12/2023
2.1.0 46,646 12/9/2023
2.0.18 142 12/9/2023
2.0.17 138 12/8/2023
2.0.16 227 12/6/2023
2.0.15 162 12/5/2023
2.0.14 174 12/5/2023
2.0.13 232 12/2/2023
2.0.12 1,412 10/25/2023
2.0.11 1,417 8/16/2023
2.0.10 190 8/15/2023
2.0.9 177 8/15/2023
2.0.8 180 8/14/2023
2.0.7 180 8/13/2023
2.0.6 277 8/9/2023
2.0.5 461 7/11/2023
2.0.4 538 6/12/2023
2.0.3 36,771 5/14/2023
2.0.2 2,100 5/10/2023
2.0.1 201 5/9/2023
2.0.0 7,019 5/4/2023
2.0.0-preview1.3 2,788 3/9/2023
2.0.0-preview1.2 123 3/2/2023
2.0.0-preview1.1 124 3/1/2023
2.0.0-preview1 817 1/23/2023
1.1.35 67,565 1/21/2023
1.1.34 337 1/19/2023
1.1.33 377 1/13/2023
1.1.32 2,548 1/4/2023
1.1.31 376 12/30/2022
1.1.30 349 12/29/2022
1.1.29 336 12/28/2022
1.1.28 344 12/27/2022
1.1.27 350 12/23/2022
1.1.26 352 12/22/2022
1.1.25 761 12/19/2022
1.1.24 340 12/19/2022
1.1.23 333 12/15/2022
1.1.22 441 12/5/2022
1.1.21 358 12/5/2022
1.1.20 419 11/21/2022
1.1.19 1,089 10/14/2022
1.1.18 775 10/1/2022
1.1.17 589 9/15/2022
1.1.16 475 9/10/2022
1.1.15 2,664 8/25/2022
1.1.14 538 8/9/2022
1.1.13 863 7/17/2022
1.1.12 484 7/15/2022
1.1.11 468 7/14/2022
1.1.10 50,955 7/12/2022
1.1.9 481 7/9/2022
1.1.8 494 7/6/2022
1.1.7 511 7/1/2022
1.1.6 553 6/23/2022
1.1.5 496 6/23/2022
1.1.4 471 6/22/2022
1.1.3 497 6/16/2022
1.1.2 475 6/15/2022
1.1.1 453 6/14/2022
1.1.0 944 6/9/2022
1.0.105 560 5/26/2022
1.0.104 487 5/26/2022
1.0.103 475 5/25/2022
1.0.102 458 5/25/2022
1.0.101 477 5/21/2022
1.0.100 452 5/20/2022
1.0.99 503 5/17/2022
1.0.98 472 5/16/2022
1.0.97 520 5/7/2022
1.0.96 481 5/6/2022
1.0.95 485 4/27/2022
1.0.94 649 4/5/2022
1.0.93 483 4/3/2022
1.0.92 483 4/2/2022
1.0.91 500 4/2/2022
1.0.90 500 3/30/2022
1.0.89 485 3/30/2022
1.0.88 495 3/26/2022
1.0.87 477 3/25/2022
1.0.86 470 3/25/2022
1.0.85 481 3/24/2022
1.0.84 485 3/24/2022
1.0.83 622 3/21/2022
1.0.82 487 3/21/2022
1.0.76 713 2/8/2022
1.0.75 522 2/1/2022
1.0.74 521 1/29/2022
1.0.73 523 1/25/2022
1.0.72 511 1/24/2022
1.0.71 501 1/23/2022
1.0.70 511 1/22/2022
1.0.69 487 1/22/2022
1.0.68 1,802 1/4/2022
1.0.67 350 12/29/2021
1.0.66 486 12/8/2021
1.0.65 343 12/4/2021
1.0.64 4,858 11/24/2021
1.0.63 349 11/16/2021
1.0.62 412 11/14/2021
1.0.61 379 11/12/2021
1.0.60 396 11/4/2021
1.0.59 401 11/4/2021
1.0.58 406 11/2/2021
1.0.57 420 10/27/2021
1.0.56 443 10/15/2021
1.0.55 415 10/15/2021
1.0.54 385 10/14/2021
1.0.53 396 10/13/2021
1.0.52 392 10/12/2021
1.0.51 406 10/8/2021
1.0.50 381 10/7/2021
1.0.49 380 10/6/2021
1.0.48 365 10/6/2021
1.0.47 394 10/5/2021
1.0.46 535 10/3/2021
1.0.45 409 9/25/2021
1.0.44 446 9/24/2021
1.0.43 384 9/23/2021
1.0.42 411 9/22/2021
1.0.41 403 9/21/2021
1.0.40 432 9/21/2021
1.0.39 395 9/17/2021
1.0.38 411 9/16/2021
1.0.37 421 9/16/2021
1.0.36 399 9/15/2021
1.0.35 437 9/15/2021
1.0.34 408 9/14/2021
1.0.33 416 9/14/2021
1.0.32 423 9/7/2021
1.0.31 455 9/5/2021
1.0.30 420 9/4/2021
1.0.29 429 9/4/2021
1.0.28 417 9/3/2021
1.0.27 405 9/2/2021
1.0.26 424 9/2/2021
1.0.25 414 9/1/2021
1.0.24 414 8/31/2021
1.0.23 409 8/30/2021
1.0.22 418 8/26/2021
1.0.21 407 8/26/2021
1.0.20 377 8/25/2021
1.0.19 383 8/25/2021
1.0.18 410 8/21/2021
1.0.17 400 8/12/2021
1.0.16 445 7/29/2021
1.0.15 437 7/28/2021
1.0.14 409 7/27/2021
1.0.13 461 7/13/2021
1.0.12 490 5/21/2021
1.0.11 459 5/8/2021
1.0.10 406 4/27/2021
1.0.9 424 4/9/2021
1.0.8 24,720 3/20/2021
1.0.7 439 3/9/2021
1.0.6 437 3/6/2021
1.0.5 438 3/5/2021
1.0.4 578 2/12/2021
1.0.3 453 2/9/2021
1.0.2 31,074 2/6/2021
1.0.1 458 2/6/2021
1.0.0 6,083 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/