@@ -5,8 +5,9 @@ Some awesome icons all together...
55The IconPacks library contains controls to use awesome icons from
66
77- [ Material] ( https://materialdesignicons.com/ ) (v1.7.22)
8- - [ Modern] ( http://modernuiicons.com/ )
98- [ Font Awesome] ( http://fontawesome.io/icons/ ) (v4.6)
9+ - [ GitHub Octicons] ( https://octicons.github.com/ ) (v4.3.0)
10+ - [ Modern] ( http://modernuiicons.com/ )
1011- [ Entypo+] ( http://www.entypo.com/ )
1112
1213in a simple way.
@@ -21,7 +22,7 @@ It's not necessary to install [MahApps.Metro](https://github.com/MahApps/MahApps
2122
2223## Install
2324
24- To install the IconPacks, you can run the following commands in the NuGet Package Manager Console ( or in the NuGet Package Manager extension in VS)
25+ To install the IconPacks, run the following commands in the NuGet Package Manager Console or install it with the NuGet Package Manager extension.
2526
2627- ` MahApps.Metro.IconPacks ` includes all Icons in one package [ NuGet package] ( https://www.nuget.org/packages/MahApps.Metro.IconPacks/ )
2728``` bash
@@ -35,6 +36,10 @@ To install the IconPacks, you can run the following commands in the NuGet Packag
3536``` bash
3637 PM> Install-Package MahApps.Metro.IconPacks.FontAwesome
3738```
39+ - ` MahApps.Metro.IconPacks.Octicons ` separate [ NuGet package] ( https://www.nuget.org/packages/MahApps.Metro.IconPacks.Octicons/ )
40+ ``` bash
41+ PM> Install-Package MahApps.Metro.IconPacks.Octicons
42+ ```
3843- ` MahApps.Metro.IconPacks.Modern ` separate [ NuGet package] ( https://www.nuget.org/packages/MahApps.Metro.IconPacks.Modern/ )
3944``` bash
4045 PM> Install-Package MahApps.Metro.IconPacks.Modern
@@ -51,29 +56,31 @@ If you want all icons together then just install the `MahApps.Metro.IconPacks` N
5156``` xaml
5257<iconPacks : PackIconMaterial Kind =" EmoticonCool" />
5358```
54- ![ 2016-07-26_02h28_22] ( https://cloud.githubusercontent.com/assets/658431/17122168/71270be8-52d9-11e6-89a2-d670bd72aabb.png )
5559
5660``` xaml
57- <iconPacks : PackIconModern Kind =" ThumbsUp " />
61+ <iconPacks : PackIconFontAwesome Kind =" FontAwesome " />
5862```
59- ![ 2016-07-26_02h28_37] ( https://cloud.githubusercontent.com/assets/658431/17122171/729eb156-52d9-11e6-8baf-12345ddb9262.png )
6063
6164``` xaml
62- <iconPacks : PackIconFontAwesome Kind =" FontAwesome" />
65+ <iconPacks : PackIconOcticons Kind =" MarkGithub" />
66+ ```
67+
68+ ``` xaml
69+ <iconPacks : PackIconModern Kind =" ThumbsUp" />
6370```
64- ![ 2016-07-26_02h29_35] ( https://cloud.githubusercontent.com/assets/658431/17122172/73fe79f0-52d9-11e6-821e-204d1ee99fc3.png )
6571
6672``` xaml
6773<iconPacks : PackIconEntypo Kind =" EmojiHappy" />
6874```
69- ![ 2016-07-26_02h30_11] ( https://cloud.githubusercontent.com/assets/658431/17122173/7573d3ca-52d9-11e6-9a2e-8ecadad254e4.png )
7075
7176The Xaml namespace for all icon packs is:
7277
7378``` xaml
7479xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks"
7580```
7681
82+ ![ iconpacks001] ( https://cloud.githubusercontent.com/assets/658431/19322565/d6ec652c-90b9-11e6-8a06-00e326ca390a.gif )
83+
7784## Sample
7885
7986``` xaml
@@ -137,10 +144,11 @@ Here is the resource dictionary content for all IconPacks in this sample (for `C
137144
138145 <ResourceDictionary .MergedDictionaries>
139146 <!-- reference all necessary original resource dictionaries -->
140- <ResourceDictionary Source =" pack://application:,,,/MahApps.Metro.IconPacks;component/Themes/PackIconEntypo.xaml" />
141- <ResourceDictionary Source =" pack://application:,,,/MahApps.Metro.IconPacks;component/Themes/PackIconFontAwesome.xaml" />
142147 <ResourceDictionary Source =" pack://application:,,,/MahApps.Metro.IconPacks;component/Themes/PackIconMaterial.xaml" />
148+ <ResourceDictionary Source =" pack://application:,,,/MahApps.Metro.IconPacks;component/Themes/PackIconFontAwesome.xaml" />
149+ <ResourceDictionary Source =" pack://application:,,,/MahApps.Metro.IconPacks;component/Themes/PackIconOcticons.xaml" />
143150 <ResourceDictionary Source =" pack://application:,,,/MahApps.Metro.IconPacks;component/Themes/PackIconModern.xaml" />
151+ <ResourceDictionary Source =" pack://application:,,,/MahApps.Metro.IconPacks;component/Themes/PackIconEntypo.xaml" />
144152 </ResourceDictionary .MergedDictionaries>
145153
146154 <!-- now make some global changes for the icon pack controls without using new keys -->
@@ -149,13 +157,21 @@ Here is the resource dictionary content for all IconPacks in this sample (for `C
149157 <Setter Property =" Width" Value =" 32" />
150158 <Setter Property =" Height" Value =" 32" />
151159 </Style >
152- <Style TargetType =" {x:Type iconPacks:PackIconModern}" BasedOn =" {StaticResource MahApps.Metro.Styles.PackIconModern}" >
153- <Setter Property =" HorizontalAlignment" Value =" Center" />
154- </Style >
160+
155161 <Style TargetType =" {x:Type iconPacks:PackIconFontAwesome}" BasedOn =" {StaticResource MahApps.Metro.Styles.PackIconFontAwesome}" >
156162 <Setter Property =" Width" Value =" 24" />
157163 <Setter Property =" Height" Value =" 24" />
158164 </Style >
165+
166+ <Style TargetType =" {x:Type iconPacks:PackIconOcticons}" BasedOn =" {StaticResource MahApps.Metro.Styles.PackIconOcticons}" >
167+ <Setter Property =" Width" Value =" 48" />
168+ <Setter Property =" Height" Value =" 48" />
169+ </Style >
170+
171+ <Style TargetType =" {x:Type iconPacks:PackIconModern}" BasedOn =" {StaticResource MahApps.Metro.Styles.PackIconModern}" >
172+ <Setter Property =" HorizontalAlignment" Value =" Center" />
173+ </Style >
174+
159175 <Style TargetType =" {x:Type iconPacks:PackIconEntypo}" BasedOn =" {StaticResource MahApps.Metro.Styles.PackIconEntypo}" >
160176 <Setter Property =" VerticalAlignment" Value =" Center" />
161177 <Setter Property =" HorizontalAlignment" Value =" Center" />
@@ -171,4 +187,4 @@ If you use the IconPack with all included icons you can also use this resource d
171187
172188## Strong naming
173189
174- I will not do this for this packages. If you need this then you should use the [ Strong Namer] ( https://github.com/dsplaisted/strongnamer ) from @dsplaisted .
190+ If you need strong named dlls then you should use the [ Strong Namer] ( https://github.com/dsplaisted/strongnamer ) from @dsplaisted .
0 commit comments