Material.Icons 2.1.10

dotnet add package Material.Icons --version 2.1.10                
NuGet\Install-Package Material.Icons -Version 2.1.10                
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.1.10" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Material.Icons --version 2.1.10                
#r "nuget: Material.Icons, 2.1.10"                
#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.
// Install Material.Icons as a Cake Addin
#addin nuget:?package=Material.Icons&version=2.1.10

// Install Material.Icons as a Cake Tool
#tool nuget:?package=Material.Icons&version=2.1.10                

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

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

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

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

Floxel

Toolkit for making WPF applications

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.1.10 40,104 6/20/2024
2.1.9 18,366 4/4/2024
2.1.8 351 4/1/2024
2.1.7 136 4/1/2024
2.1.6 1,714 1/18/2024
2.1.5 858 1/2/2024
2.1.4 470 12/19/2023
2.1.3 250 12/15/2023
2.1.2 125 12/14/2023
2.1.1 166 12/12/2023
2.1.0 41,218 12/9/2023
2.0.18 133 12/9/2023
2.0.17 127 12/8/2023
2.0.16 217 12/6/2023
2.0.15 153 12/5/2023
2.0.14 165 12/5/2023
2.0.13 223 12/2/2023
2.0.12 1,397 10/25/2023
2.0.11 1,383 8/16/2023
2.0.10 178 8/15/2023
2.0.9 169 8/15/2023
2.0.8 172 8/14/2023
2.0.7 171 8/13/2023
2.0.6 264 8/9/2023
2.0.5 448 7/11/2023
2.0.4 506 6/12/2023
2.0.3 32,634 5/14/2023
2.0.2 2,087 5/10/2023
2.0.1 186 5/9/2023
2.0.0 6,329 5/4/2023
2.0.0-preview1.3 2,726 3/9/2023
2.0.0-preview1.2 114 3/2/2023
2.0.0-preview1.1 115 3/1/2023
2.0.0-preview1 793 1/23/2023
1.1.35 65,379 1/21/2023
1.1.34 322 1/19/2023
1.1.33 360 1/13/2023
1.1.32 2,520 1/4/2023
1.1.31 354 12/30/2022
1.1.30 334 12/29/2022
1.1.29 319 12/28/2022
1.1.28 327 12/27/2022
1.1.27 333 12/23/2022
1.1.26 335 12/22/2022
1.1.25 746 12/19/2022
1.1.24 324 12/19/2022
1.1.23 318 12/15/2022
1.1.22 413 12/5/2022
1.1.21 339 12/5/2022
1.1.20 397 11/21/2022
1.1.19 1,067 10/14/2022
1.1.18 739 10/1/2022
1.1.17 565 9/15/2022
1.1.16 447 9/10/2022
1.1.15 2,528 8/25/2022
1.1.14 515 8/9/2022
1.1.13 828 7/17/2022
1.1.12 462 7/15/2022
1.1.11 447 7/14/2022
1.1.10 49,725 7/12/2022
1.1.9 459 7/9/2022
1.1.8 471 7/6/2022
1.1.7 489 7/1/2022
1.1.6 532 6/23/2022
1.1.5 474 6/23/2022
1.1.4 451 6/22/2022
1.1.3 476 6/16/2022
1.1.2 453 6/15/2022
1.1.1 433 6/14/2022
1.1.0 906 6/9/2022
1.0.105 535 5/26/2022
1.0.104 462 5/26/2022
1.0.103 453 5/25/2022
1.0.102 435 5/25/2022
1.0.101 454 5/21/2022
1.0.100 430 5/20/2022
1.0.99 481 5/17/2022
1.0.98 450 5/16/2022
1.0.97 492 5/7/2022
1.0.96 457 5/6/2022
1.0.95 461 4/27/2022
1.0.94 625 4/5/2022
1.0.93 459 4/3/2022
1.0.92 459 4/2/2022
1.0.91 478 4/2/2022
1.0.90 477 3/30/2022
1.0.89 461 3/30/2022
1.0.88 473 3/26/2022
1.0.87 454 3/25/2022
1.0.86 447 3/25/2022
1.0.85 458 3/24/2022
1.0.84 460 3/24/2022
1.0.83 598 3/21/2022
1.0.82 463 3/21/2022
1.0.76 682 2/8/2022
1.0.75 498 2/1/2022
1.0.74 498 1/29/2022
1.0.73 499 1/25/2022
1.0.72 488 1/24/2022
1.0.71 477 1/23/2022
1.0.70 487 1/22/2022
1.0.69 463 1/22/2022
1.0.68 1,613 1/4/2022
1.0.67 326 12/29/2021
1.0.66 462 12/8/2021
1.0.65 319 12/4/2021
1.0.64 4,833 11/24/2021
1.0.63 325 11/16/2021
1.0.62 387 11/14/2021
1.0.61 355 11/12/2021
1.0.60 372 11/4/2021
1.0.59 376 11/4/2021
1.0.58 381 11/2/2021
1.0.57 396 10/27/2021
1.0.56 417 10/15/2021
1.0.55 391 10/15/2021
1.0.54 361 10/14/2021
1.0.53 372 10/13/2021
1.0.52 369 10/12/2021
1.0.51 382 10/8/2021
1.0.50 357 10/7/2021
1.0.49 358 10/6/2021
1.0.48 344 10/6/2021
1.0.47 372 10/5/2021
1.0.46 513 10/3/2021
1.0.45 387 9/25/2021
1.0.44 424 9/24/2021
1.0.43 363 9/23/2021
1.0.42 390 9/22/2021
1.0.41 381 9/21/2021
1.0.40 410 9/21/2021
1.0.39 371 9/17/2021
1.0.38 389 9/16/2021
1.0.37 399 9/16/2021
1.0.36 377 9/15/2021
1.0.35 415 9/15/2021
1.0.34 387 9/14/2021
1.0.33 394 9/14/2021
1.0.32 400 9/7/2021
1.0.31 433 9/5/2021
1.0.30 398 9/4/2021
1.0.29 406 9/4/2021
1.0.28 395 9/3/2021
1.0.27 383 9/2/2021
1.0.26 401 9/2/2021
1.0.25 391 9/1/2021
1.0.24 392 8/31/2021
1.0.23 387 8/30/2021
1.0.22 396 8/26/2021
1.0.21 384 8/26/2021
1.0.20 355 8/25/2021
1.0.19 361 8/25/2021
1.0.18 388 8/21/2021
1.0.17 378 8/12/2021
1.0.16 424 7/29/2021
1.0.15 416 7/28/2021
1.0.14 388 7/27/2021
1.0.13 440 7/13/2021
1.0.12 468 5/21/2021
1.0.11 437 5/8/2021
1.0.10 384 4/27/2021
1.0.9 401 4/9/2021
1.0.8 23,100 3/20/2021
1.0.7 414 3/9/2021
1.0.6 411 3/6/2021
1.0.5 413 3/5/2021
1.0.4 550 2/12/2021
1.0.3 425 2/9/2021
1.0.2 29,703 2/6/2021
1.0.1 432 2/6/2021
1.0.0 4,983 1/21/2021

- Icons set updated according to materialdesignicons.com at Thu, 20 Jun 2024 12:18:52 GMT
Check out changes at https://pictogrammers.com/library/mdi/history/