WPF vector icon library using MaterialDesign open source icons
$ dotnet add package MdiWpfMdiWpf is a WPF vector icon library using MaterialDesign open source icons.
The icons are embedded in the library in svg format and their data are parsed with the IconsFactory class.
The markup extensions IconSource and IconGeometry make the usage in XAML as easy as possible.
It also contains the VectorIcon control that helps to display icons
in an Image with DataBinding for Geometry and Brush.
Material Design Icons GitHub repo
Import namespace in XAML :
xmlns:mdi="clr-namespace:MdiWpf;assembly=MdiWpf"
xmlns:controls="clr-namespace:MdiWpf.Controls;assembly=MdiWpf"
Example of IconSource markup extension with an image :
<Image Source="{mdi:IconSource IconName='barcode-scan', Brush=Coral}" />
Example of IconGeometry markup extension with a VectorIcon :
<controls:VectorIcon Geometry="{mdi:IconGeometry IconName='server-security'}"
Brush="Magenta" />
Copyright (c) 2025 Josué Clément