# MahApps.Metro.IconPacks **Repository Path**: yudaming/MahApps.Metro.IconPacks ## Basic Information - **Project Name**: MahApps.Metro.IconPacks - **Description**: Some awesome icons for WPF and UWP all together... - **Primary Language**: C# - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2017-08-17 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # MahApps.Metro.IconPacks [![Join the chat at https://gitter.im/MahApps/MahApps.Metro.IconPacks](https://badges.gitter.im/MahApps/MahApps.Metro.IconPacks.svg)](https://gitter.im/MahApps/MahApps.Metro.IconPacks?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) The `IconPacks` library contains controls to use awesome icons from - [Material Design](https://materialdesignicons.com/) (v1.8.36 with 1843 icons) - [Material Design Icons Light](https://github.com/Templarian/MaterialDesignLight) (v0.2.63 with 257 icons) - [Font Awesome](http://fontawesome.io/icons/) (v4.7 with 675 icons) - [GitHub Octicons](https://octicons.github.com/) (v5.0.1 with 176 icons) - [Modern](http://modernuiicons.com/) (1224 icons) - [Entypo+](http://www.entypo.com/) (411 icons) - [Simple Icons](https://simpleicons.org/) (300 icons) for `WPF` and `UWP` apps in a simple way. It's not necessary to install [MahApps.Metro](https://github.com/MahApps/MahApps.Metro) (for WPF), but it makes your application nicer. ![iconbrowserfinal](https://cloud.githubusercontent.com/assets/658431/18764958/ec20dd3e-8113-11e6-8793-b012eaec2302.gif) ## Want to say thanks? This framework is free and can be used for free, open source and commercial applications. It's tested and contributed by many people... So mainly hit the :star: button, that's all... thx :squirrel: (:dollar:, :euro:, :beer: or some other gifts are also being accepted...). ## Install To install the IconPacks, run the following commands in the NuGet Package Manager Console or install it with the NuGet Package Manager extension. - `MahApps.Metro.IconPacks` includes all Icons in one package [NuGet package](https://www.nuget.org/packages/MahApps.Metro.IconPacks/) ```bash PM> Install-Package MahApps.Metro.IconPacks ``` - `MahApps.Metro.IconPacks.Material` with this [NuGet package](https://www.nuget.org/packages/MahApps.Metro.IconPacks.Material/) ```bash PM> Install-Package MahApps.Metro.IconPacks.Material ``` - `MahApps.Metro.IconPacks.MaterialLight` with this [NuGet package](https://www.nuget.org/packages/MahApps.Metro.IconPacks.MaterialLight/) ```bash PM> Install-Package MahApps.Metro.IconPacks.MaterialLight ``` - `MahApps.Metro.IconPacks.FontAwesome` with this [NuGet package](https://www.nuget.org/packages/MahApps.Metro.IconPacks.FontAwesome/) ```bash PM> Install-Package MahApps.Metro.IconPacks.FontAwesome ``` - `MahApps.Metro.IconPacks.Octicons` with this [NuGet package](https://www.nuget.org/packages/MahApps.Metro.IconPacks.Octicons/) ```bash PM> Install-Package MahApps.Metro.IconPacks.Octicons ``` - `MahApps.Metro.IconPacks.Modern` with this [NuGet package](https://www.nuget.org/packages/MahApps.Metro.IconPacks.Modern/) ```bash PM> Install-Package MahApps.Metro.IconPacks.Modern ``` - `MahApps.Metro.IconPacks.Entypo` with this [NuGet package](https://www.nuget.org/packages/MahApps.Metro.IconPacks.Entypo/) ```bash PM> Install-Package MahApps.Metro.IconPacks.Entypo ``` - `MahApps.Metro.IconPacks.SimpleIcons` with this [NuGet package](https://www.nuget.org/packages/MahApps.Metro.IconPacks.SimpleIcons/) ```bash PM> Install-Package MahApps.Metro.IconPacks.SimpleIcons ``` ## Usage If you want all icons together then just install the `MahApps.Metro.IconPacks` NuGet package. You can also only install one of the icon packs if you don't need them all. ```xaml ``` ```xaml ``` ```xaml ``` ```xaml ``` ```xaml ``` ```xaml ``` ```xaml ``` The `Xaml` namespace for all icon packs is: ```xaml xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" ``` and for the `UWP` packages: ```xaml xmlns:iconPacks="using:MahApps.Metro.IconPacks" ``` ![iconpacks001](https://cloud.githubusercontent.com/assets/658431/19322565/d6ec652c-90b9-11e6-8a06-00e326ca390a.gif) ## IconPacks Browser If you have no idea which icon you're supposed to take, then you can use the IconPacks Browser. You can search in every IconPacks and copy a raw `Xaml` code snippet to the clipboard. You can download the latest version of the browser at the [release page](https://github.com/MahApps/MahApps.Metro.IconPacks/releases) or directly [here](https://github.com/MahApps/MahApps.Metro.IconPacks/releases/download/v1.6.0/IconPacks.Browser.NET45.zip) (a zipped pre-compiled .NET 4.5 executable). ## WPF Sample ```xaml ``` ## UWP Sample ```xaml ``` ## MarkupExtension (only for WPF) A faster way to get a Button with an Icon is to use the MarkupExtension(s). If you want e.g. a Button with an Icon of the `PackIconFontAwesome` then you can use this one: ```xaml