Fork me on GitHub

Icons and Resources - MahApps.Metro


MahApps.Metro can use the MahApps.Metro.IconPacks which contains controls to use these awesome icons in a simple way.

    <Window x:Class="IconPacksTest.App"
            Title="IconPacks" Height="300" Width="300">

            <iconPacks:PackIconMaterial Kind="EmoticonCool" VerticalAlignment="Center" HorizontalAlignment="Center" />


Modern UI Icons [obsolete]

MahApps.Metro does not embed any icons or “resources” other than control styles. However, there is MahApps.Metro.Resources package. This allows better discoverability and customisation.

You can install this package using NuGet via Package Manager or Client:

PM> Install-Package MahApps.Metro

Currently, this consists of Entypo and Temparian’s Modern UI Icons.

Usage [obsolete]

The resources are simply Canvas’s wrapping one or more Paths. To use these sorts of elements, you can just use WPF’s VisualBrush.

                <ResourceDictionary Source="/Resources/Icons.xaml" />
            <VisualBrush Visual="{StaticResource appbar_add}" />

If you’re trying to create “circle” buttons ala Windows Phone 7, the easiest way is to set the VisualBrush to be an OpacityMask on the Rectangle. This means you just need to alter the Rectangle colours on state change (hover, mouse down, etc)

	<Rectangle Fill="Black">
			<VisualBrush Visual="{StaticResource appbar_add}" Stretch="Fill" />