MarioGK / Material.Icons

Strongly typed parsed icons set from materialdesignicons.com and display control implementations for different GUI frameworks.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Material.Icons

Parsed icons set from materialdesignicons.com and display control implementations for different GUI frameworks. All information about icons is stored in text form and is automatically generated every time Material.Icons is built. Icons are graphically encoded via SVG Path.

Meta library

Getting started

Install Material.Icons nuget package:

dotnet add package Material.Icons

icons-nuget icons-nuget

Using

Icon types stored in MaterialIconKind enum.
We can access icon paths by using MaterialIconDataFactory.DataSetCreate().
We can access icons meta info by using MaterialIconDataFactory.InstanceSetCreate().

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

Material.Icons.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
    <Application ...>
      <Application.Styles>
        ...
        <StyleInclude Source="avares://Material.Icons.Avalonia/App.xaml" />
      </Application.Styles>
    </Application>

Using

Add Material.Icons.Avalonia namespace to root element of your file (your IDE can suggest it or do it automatically):

xmlns:avalonia="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.

About

Strongly typed parsed icons set from materialdesignicons.com and display control implementations for different GUI frameworks.

License:MIT License


Languages

Language:C# 100.0%