Skip to content

Commit

Permalink
Merge pull request #44 from MahApps/dev
Browse files Browse the repository at this point in the history
Merge 1.9.0 dev to master
  • Loading branch information
punker76 authored Apr 15, 2017
2 parents 8fda82c + 92940fc commit 02bf9b4
Show file tree
Hide file tree
Showing 33 changed files with 1,589 additions and 18 deletions.
19 changes: 16 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,15 @@

[![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)

Some awesome icons all together...

The IconPacks library contains controls to use awesome icons from
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.

Expand Down Expand Up @@ -55,6 +54,10 @@ To install the IconPacks, run the following commands in the NuGet Package Manage
```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

Expand Down Expand Up @@ -84,6 +87,10 @@ If you want all icons together then just install the `MahApps.Metro.IconPacks` N
<iconPacks:PackIconEntypo Kind="EmojiHappy" />
```

```xaml
<iconPacks:PackIconSimpleIcons Kind="StackOverflow" />
```

The `Xaml` namespace for all icon packs is:

```xaml
Expand Down Expand Up @@ -219,6 +226,7 @@ Here is the resource dictionary content for all IconPacks in this sample (for `C
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro.IconPacks;component/Themes/PackIconOcticons.xaml" />
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro.IconPacks;component/Themes/PackIconModern.xaml" />
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro.IconPacks;component/Themes/PackIconEntypo.xaml" />
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro.IconPacks;component/Themes/PackIconSimpleIcons.xaml" />
</ResourceDictionary.MergedDictionaries>

<!-- now make some global changes for the icon pack controls without using new keys -->
Expand Down Expand Up @@ -252,6 +260,11 @@ Here is the resource dictionary content for all IconPacks in this sample (for `C
<Setter Property="HorizontalAlignment" Value="Center" />
</Style>

<Style TargetType="{x:Type iconPacks:PackIconSimpleIcons}" BasedOn="{StaticResource MahApps.Metro.Styles.PackIconSimpleIcons}">
<Setter Property="VerticalAlignment" Value="Center" />
<Setter Property="HorizontalAlignment" Value="Center" />
</Style>

</ResourceDictionary>
```
If you use the IconPack with all included icons you can also use this resource dictionary:
Expand Down
8 changes: 4 additions & 4 deletions src/GlobalAssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
//------------------------------------------------------------------------------
using System.Reflection;

[assembly: AssemblyProduct("MahApps.Metro.IconPacks 1.8.0.0")]
[assembly: AssemblyVersion("1.8.0.0")]
[assembly: AssemblyFileVersion("1.8.0.0")]
[assembly: AssemblyInformationalVersion("1.8.0.0")]
[assembly: AssemblyProduct("MahApps.Metro.IconPacks 1.9.0.0")]
[assembly: AssemblyVersion("1.9.0.0")]
[assembly: AssemblyFileVersion("1.9.0.0")]
[assembly: AssemblyInformationalVersion("1.9.0.0")]
[assembly: AssemblyCopyright("Copyright © MahApps.Metro 2017")]

2 changes: 1 addition & 1 deletion src/MahApps.Metro.IconPacks.Browser/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
d:DesignHeight="400" d:DesignWidth="600"
d:DataContext="{d:DesignInstance viewModels:MainViewModel}"
Title="IconPacks Browser"
Height="600" Width="800"
Height="600" Width="950"
MinHeight="400" MinWidth="600"
TitleCharacterCasing="Normal"
WindowTransitionsEnabled="False"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
[assembly: ComVisible(false)]
[assembly: ThemeInfo(ResourceDictionaryLocation.None, ResourceDictionaryLocation.SourceAssembly)]

[assembly: AssemblyVersion("1.3.0.0")]
[assembly: AssemblyFileVersion("1.3.0.0")]
[assembly: AssemblyInformationalVersion("1.3.0.0")]
[assembly: AssemblyProduct("MahApps.Metro.IconPacks.Browser 1.3.0")]
[assembly: AssemblyVersion("1.4.0.0")]
[assembly: AssemblyFileVersion("1.4.0.0")]
[assembly: AssemblyInformationalVersion("1.4.0.0")]
[assembly: AssemblyProduct("MahApps.Metro.IconPacks.Browser 1.4.0")]
[assembly: AssemblyTitle("MahApps.Metro.IconPacks.Browser")]
[assembly: AssemblyDescription("Application for the awesome IconPacks.")]
[assembly: AssemblyCopyright("Copyright © MahApps.Metro 2016-2017")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,15 @@
</Setter.Value>
</Setter>
</DataTrigger>
<DataTrigger Binding="{Binding IconType}" Value="{x:Type iconPacks:PackIconSimpleIconsKind}">
<Setter TargetName="IconContent" Property="ContentTemplate">
<Setter.Value>
<DataTemplate DataType="{x:Type viewModels:IIconViewModel}">
<iconPacks:PackIconSimpleIcons Width="{TemplateBinding ActualWidth}" Height="{TemplateBinding ActualHeight}" Kind="{Binding Value, Mode=OneWay, Converter={converter:NullToUnsetValueConverter}}" Background="{StaticResource TabControlBackgroundBrush}" SnapsToDevicePixels="True" BorderThickness="1" BorderBrush="{DynamicResource GrayBrush5}" Foreground="{DynamicResource AccentColorBrush}" HorizontalAlignment="Center" VerticalAlignment="Center" />
</DataTemplate>
</Setter.Value>
</Setter>
</DataTrigger>
</DataTemplate.Triggers>
</DataTemplate>

Expand Down Expand Up @@ -271,6 +280,15 @@
</Setter.Value>
</Setter>
</DataTrigger>
<DataTrigger Binding="{Binding IconType}" Value="{x:Type iconPacks:PackIconSimpleIconsKind}">
<Setter TargetName="IconContent" Property="ContentTemplate">
<Setter.Value>
<DataTemplate DataType="{x:Type viewModels:IIconViewModel}">
<iconPacks:PackIconSimpleIcons Width="32" Height="32" HorizontalAlignment="Center" VerticalAlignment="Center" Kind="{Binding Value, Mode=OneWay}" />
</DataTemplate>
</Setter.Value>
</Setter>
</DataTrigger>
</DataTemplate.Triggers>
</DataTemplate>
</ListBox.ItemTemplate>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ public MainViewModel(Dispatcher dispatcher)
new IconPackViewModel(this, "Octicons", typeof(PackIconOcticonsKind), typeof(PackIconOcticons)),
new IconPackViewModel(this, "Modern", typeof(PackIconModernKind), typeof(PackIconModern)),
new IconPackViewModel(this, "Entypo+", typeof(PackIconEntypoKind), typeof(PackIconEntypo)),
new IconPackViewModel(this, "SimpleIcons", typeof(PackIconSimpleIconsKind), typeof(PackIconSimpleIcons)),
new IconPackViewModel(this, "All",
new Type[] { typeof(PackIconMaterialKind), typeof(PackIconMaterialLightKind), typeof(PackIconFontAwesomeKind), typeof(PackIconOcticonsKind), typeof(PackIconModernKind), typeof(PackIconEntypoKind) },
new Type[] { typeof(PackIconMaterial), typeof(PackIconMaterialLight), typeof(PackIconFontAwesome), typeof(PackIconOcticons), typeof(PackIconModern), typeof(PackIconEntypo) })
new Type[] { typeof(PackIconMaterialKind), typeof(PackIconMaterialLightKind), typeof(PackIconFontAwesomeKind), typeof(PackIconOcticonsKind), typeof(PackIconModernKind), typeof(PackIconEntypoKind), typeof(PackIconSimpleIconsKind) },
new Type[] { typeof(PackIconMaterial), typeof(PackIconMaterialLight), typeof(PackIconFontAwesome), typeof(PackIconOcticons), typeof(PackIconModern), typeof(PackIconEntypo), typeof(PackIconSimpleIcons) })
});
this.IconPacksVersion = Assembly.GetAssembly(typeof(PackIconMaterial)).GetName().Version.ToString();
this.GoToGitHubCommand =
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,162 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{85E73E30-B880-4127-A770-E8F0DE6744CE}</ProjectGuid>
<OutputType>library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>MahApps.Metro.IconPacks.SimpleIcons</RootNamespace>
<AssemblyName>MahApps.Metro.IconPacks.SimpleIcons</AssemblyName>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>..\bin\Debug\</OutputPath>
<IntermediateOutputPath>obj\Debug\</IntermediateOutputPath>
<DocumentationFile>..\bin\Debug\$(AssemblyName).XML</DocumentationFile>
<DefineConstants>TRACE;DEBUG;SIMPLEICONS</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<NoWarn>1591</NoWarn>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>..\bin\Release\</OutputPath>
<IntermediateOutputPath>obj\Release\</IntermediateOutputPath>
<DocumentationFile>..\bin\Release\$(AssemblyName).XML</DocumentationFile>
<DefineConstants>TRACE;SIMPLEICONS</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<NoWarn>0067,1591,0168</NoWarn>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release_NET45|AnyCPU'">
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<OutputPath>..\bin\Release_NET45\</OutputPath>
<IntermediateOutputPath>obj\Release_NET45\</IntermediateOutputPath>
<DocumentationFile>..\bin\Release_NET45\$(AssemblyName).XML</DocumentationFile>
<DefineConstants>TRACE;SIMPLEICONS</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>AnyCPU</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<NoWarn>0067,1591,0168</NoWarn>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release_NET46|AnyCPU'">
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
<OutputPath>..\bin\Release_NET46\</OutputPath>
<IntermediateOutputPath>obj\Release_NET46\</IntermediateOutputPath>
<DocumentationFile>..\bin\Release_NET46\$(AssemblyName).XML</DocumentationFile>
<DefineConstants>TRACE;SIMPLEICONS</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>AnyCPU</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<NoWarn>0067,1591,0168</NoWarn>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<ItemGroup>
<Compile Include="..\GlobalAssemblyInfo.cs">
<Link>GlobalAssemblyInfo.cs</Link>
</Compile>
<Compile Include="..\MahApps.Metro.IconPacks\Converter\FlipToScaleValueConverter.cs">
<Link>Converter\FlipToScaleValueConverter.cs</Link>
</Compile>
<Compile Include="..\MahApps.Metro.IconPacks\Converter\MarkupConverter.cs">
<Link>Converter\MarkupConverter.cs</Link>
</Compile>
<Compile Include="..\MahApps.Metro.IconPacks\Converter\NullToUnsetValueConverter.cs">
<Link>Converter\NullToUnsetValueConverter.cs</Link>
</Compile>
<Compile Include="..\MahApps.Metro.IconPacks\PackIcon.cs">
<Link>PackIcon.cs</Link>
</Compile>
<Compile Include="..\MahApps.Metro.IconPacks\PackIconExtension.cs">
<Link>PackIconExtension.cs</Link>
</Compile>
<Compile Include="..\MahApps.Metro.IconPacks\PackIconSimpleIcons.cs">
<Link>PackIconSimpleIcons.cs</Link>
</Compile>
<Compile Include="..\MahApps.Metro.IconPacks\PackIconSimpleIconsDataFactory.cs">
<Link>PackIconSimpleIconsDataFactory.cs</Link>
</Compile>
<Compile Include="..\MahApps.Metro.IconPacks\PackIconSimpleIconsExtension.cs">
<Link>PackIconSimpleIconsExtension.cs</Link>
</Compile>
<Compile Include="..\MahApps.Metro.IconPacks\PackIconSimpleIconsKind.cs">
<Link>PackIconSimpleIconsKind.cs</Link>
</Compile>
<Compile Include="..\paket-files\ControlzEx\ControlzEx\src\ControlzEx\PackIconBase.cs">
<Paket>True</Paket>
<Link>ControlzEx/PackIconBase.cs</Link>
</Compile>
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="System.Xaml">
<RequiredTargetFramework>4.0</RequiredTargetFramework>
</Reference>
<Reference Include="WindowsBase" />
<Reference Include="PresentationCore" />
<Reference Include="PresentationFramework" />
</ItemGroup>
<ItemGroup>
<Page Include="..\MahApps.Metro.IconPacks\Themes\PackIconSimpleIcons.xaml">
<Link>Themes\PackIconSimpleIcons.xaml</Link>
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Themes\Generic.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
</ItemGroup>
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<AppDesigner Include="Properties\" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
<Import Project="..\.paket\paket.targets" />
</Project>
12 changes: 12 additions & 0 deletions src/MahApps.Metro.IconPacks.SimpleIcons/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using System.Reflection;
using System.Runtime.InteropServices;
using System.Windows;
using System.Windows.Markup;

[assembly: ComVisible(false)]
[assembly: ThemeInfo(ResourceDictionaryLocation.None, ResourceDictionaryLocation.SourceAssembly)]

[assembly: XmlnsDefinition("http://metro.mahapps.com/winfx/xaml/iconpacks", "MahApps.Metro.IconPacks")]
[assembly: AssemblyTitle("MahApps.Metro.IconPacks.SimpleIcons")]
[assembly: AssemblyDescription("IconPacks for stylish awesome UI WPF apps.")]
[assembly: AssemblyCompany("MahApps")]

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 02bf9b4

Please sign in to comment.