Skip to content

Commit

Permalink
Update MaterialDesignTheme.MahApps for MahApps v1.6.5 (#1006)
Browse files Browse the repository at this point in the history
* Updated Version of #898 that uses MahApps.Metro v1.6.5

* Fix for MahApps.NumericUpDown Controller

* Fixing indentation

* Fixing up nuspec changes.

* Reving test projects and packet dependencies.
  • Loading branch information
ahmed-abdelrazek authored and Keboo committed Aug 12, 2018
1 parent d4f32a0 commit 98c42e8
Show file tree
Hide file tree
Showing 16 changed files with 390 additions and 102 deletions.
2 changes: 2 additions & 0 deletions MahMaterialDragablzMashUp/Mah.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,7 @@
Style="{DynamicResource AccentedSquareButtonStyle}" />
<controls:RangeSlider Margin="0 16 0 0" LowerValue="25" UpperValue="75" />
<controls:RangeSlider Margin="0 16 0 0" LowerValue="25" UpperValue="75" Orientation="Vertical" Height="200" />
<controls:NumericUpDown Margin="5"/>
<controls:NumericUpDown Culture="ar-EG" FlowDirection="RightToLeft" Margin="5"/>
</StackPanel>
</UserControl>
21 changes: 16 additions & 5 deletions MahMaterialDragablzMashUp/MahAppsDragablzDemo.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,22 @@
</Target>
-->
<Import Project="..\.paket\paket.targets" />
<Choose>
<When Condition="$(TargetFrameworkIdentifier) == '.NETFramework' And ($(TargetFrameworkVersion) == 'v4.5' Or $(TargetFrameworkVersion) == 'v4.5.2')">
<ItemGroup>
<Reference Include="ControlzEx">
<HintPath>..\packages\ControlzEx\lib\net45\ControlzEx.dll</HintPath>
<Private>True</Private>
<Paket>True</Paket>
</Reference>
<Reference Include="System.Windows.Interactivity">
<HintPath>..\packages\ControlzEx\lib\net45\System.Windows.Interactivity.dll</HintPath>
<Private>True</Private>
<Paket>True</Paket>
</Reference>
</ItemGroup>
</When>
</Choose>
<Choose>
<When Condition="$(TargetFrameworkIdentifier) == '.NETFramework' And ($(TargetFrameworkVersion) == 'v4.5' Or $(TargetFrameworkVersion) == 'v4.5.2')">
<ItemGroup>
Expand All @@ -186,11 +202,6 @@
<Private>True</Private>
<Paket>True</Paket>
</Reference>
<Reference Include="System.Windows.Interactivity">
<HintPath>..\packages\MahApps.Metro\lib\net45\System.Windows.Interactivity.dll</HintPath>
<Private>True</Private>
<Paket>True</Paket>
</Reference>
</ItemGroup>
</When>
</Choose>
Expand Down
1 change: 0 additions & 1 deletion MainDemo.Wpf/App.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>

<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Light.xaml" />
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Defaults.xaml" />
<ResourceDictionary Source="pack://application:,,,/MaterialDesignColors;component/Themes/Recommended/Primary/MaterialDesignColor.DeepPurple.xaml" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,15 +105,11 @@
</ItemGroup>
</When>
</Choose>
<Import Project="..\packages\NETStandard.Library\build\NETStandard.Library.targets" Condition="Exists('..\packages\NETStandard.Library\build\NETStandard.Library.targets')" Label="Paket" />
<ItemGroup>
<Analyzer Include="..\packages\xunit.analyzers\analyzers\dotnet\cs\xunit.analyzers.dll">
<Paket>True</Paket>
</Analyzer>
</ItemGroup>
<ItemGroup>
<Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
</ItemGroup>
<Choose>
<When Condition="$(TargetFrameworkIdentifier) == '.NETFramework' And ($(TargetFrameworkVersion) == 'v4.5' Or $(TargetFrameworkVersion) == 'v4.5.2')">
<ItemGroup>
Expand All @@ -126,7 +122,16 @@
</When>
</Choose>
<Choose>
<When Condition="$(TargetFrameworkIdentifier) == '.NETFramework' And ($(TargetFrameworkVersion) == 'v4.5' Or $(TargetFrameworkVersion) == 'v4.5.2')">
<When Condition="$(TargetFrameworkIdentifier) == '.NETFramework' And $(TargetFrameworkVersion) == 'v4.5.2'">
<ItemGroup>
<Reference Include="xunit.core">
<HintPath>..\packages\xunit.extensibility.core\lib\net452\xunit.core.dll</HintPath>
<Private>True</Private>
<Paket>True</Paket>
</Reference>
</ItemGroup>
</When>
<When Condition="$(TargetFrameworkIdentifier) == '.NETFramework' And $(TargetFrameworkVersion) == 'v4.5'">
<ItemGroup>
<Reference Include="xunit.core">
<HintPath>..\packages\xunit.extensibility.core\lib\netstandard1.1\xunit.core.dll</HintPath>
Expand Down
3 changes: 2 additions & 1 deletion MaterialDesignColors.Wpf.Tests/paket.references
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
Shouldly
xunit
xunit
xunit.runner.visualstudio
6 changes: 3 additions & 3 deletions MaterialDesignColors.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
<title>Material Design Colors XAML Resources</title>
<authors>James Willock</authors>
<owners>James Willock</owners>
<licenseUrl>https://github.com/ButchersBoy/MaterialDesignInXamlToolkit/blob/master/LICENSE</licenseUrl>
<projectUrl>https://github.com/ButchersBoy/MaterialDesignInXamlToolkit</projectUrl>
<licenseUrl>https://github.com/MaterialDesignInXAML/MaterialDesignInXamlToolkit/blob/master/LICENSE</licenseUrl>
<projectUrl>https://github.com/MaterialDesignInXAML/MaterialDesignInXamlToolkit</projectUrl>
<iconUrl>http://materialdesigninxaml.net/images/MD4XAML32.png</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>ResourceDictionary instances containing standard Google Material Design swatches, for inclusion in a XAML application.</description>
<releaseNotes>https://github.com/ButchersBoy/MaterialDesignInXamlToolkit/releases</releaseNotes>
<releaseNotes>https://github.com/MaterialDesignInXAML/MaterialDesignInXamlToolkit/releases</releaseNotes>
<copyright>Copyright 2015 James Willock/Mulholland Software Ltd</copyright>
<tags>WPF XAML WinRT Material Design Colour Color UI UX</tags>
</metadata>
Expand Down
12 changes: 6 additions & 6 deletions MaterialDesignThemes.MahApps.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@
<title>Material Design Themes XAML Resources For MahApps Controls</title>
<authors>James Willock</authors>
<owners>James Willock</owners>
<licenseUrl>http://opensource.org/licenses/MS-PL</licenseUrl>
<projectUrl>https://github.com/ButchersBoy/MaterialDesignInXamlToolkit</projectUrl>
<licenseUrl>https://github.com/MaterialDesignInXAML/MaterialDesignInXamlToolkit/blob/master/LICENSE</licenseUrl>
<projectUrl>https://github.com/MaterialDesignInXAML/MaterialDesignInXamlToolkit</projectUrl>
<iconUrl>http://materialdesigninxaml.net/images/MD4XAML32.png</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>ResourceDictionary instances containing Material Design templates and styles for WPF controls in the MahApps library.</description>
<releaseNotes>https://github.com/ButchersBoy/MaterialDesignInXamlToolkit/releases</releaseNotes>
<releaseNotes>https://github.com/MaterialDesignInXAML/MaterialDesignInXamlToolkit/releases</releaseNotes>
<copyright>Copyright 2015 James Willock/Mulholland Software Ltd</copyright>
<tags>WPF XAML WinRT Material Design Theme Colour Color UI UX</tags>
<dependencies>
<dependency id="MaterialDesignColors" version="1.1.2" />
<dependency id="MaterialDesignThemes" version="1.5.0.523" />
<dependency id="MahApps.Metro" version="1.2.4" />
<dependency id="MaterialDesignColors" version="1.1.2" />
<dependency id="MaterialDesignThemes" version="1.5.0.523" />
<dependency id="MahApps.Metro" version="1.2.4" />
</dependencies>
</metadata>
<files>
Expand Down
21 changes: 18 additions & 3 deletions MaterialDesignThemes.MahApps/MaterialDesignThemes.MahApps.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<AppDesigner Include="Properties\" />
<Page Include="Themes\MaterialDesignTheme.MahApps.NumericUpDown.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\MaterialDesignThemes.Wpf\MaterialDesignThemes.Wpf.csproj">
Expand All @@ -120,13 +124,24 @@
<Choose>
<When Condition="$(TargetFrameworkIdentifier) == '.NETFramework' And ($(TargetFrameworkVersion) == 'v4.5' Or $(TargetFrameworkVersion) == 'v4.5.2')">
<ItemGroup>
<Reference Include="MahApps.Metro">
<HintPath>..\packages\MahApps.Metro\lib\net45\MahApps.Metro.dll</HintPath>
<Reference Include="ControlzEx">
<HintPath>..\packages\ControlzEx\lib\net45\ControlzEx.dll</HintPath>
<Private>True</Private>
<Paket>True</Paket>
</Reference>
<Reference Include="System.Windows.Interactivity">
<HintPath>..\packages\MahApps.Metro\lib\net45\System.Windows.Interactivity.dll</HintPath>
<HintPath>..\packages\ControlzEx\lib\net45\System.Windows.Interactivity.dll</HintPath>
<Private>True</Private>
<Paket>True</Paket>
</Reference>
</ItemGroup>
</When>
</Choose>
<Choose>
<When Condition="$(TargetFrameworkIdentifier) == '.NETFramework' And ($(TargetFrameworkVersion) == 'v4.5' Or $(TargetFrameworkVersion) == 'v4.5.2')">
<ItemGroup>
<Reference Include="MahApps.Metro">
<HintPath>..\packages\MahApps.Metro\lib\net45\MahApps.Metro.dll</HintPath>
<Private>True</Private>
<Paket>True</Paket>
</Reference>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.MahApps;component/Themes/MaterialDesignTheme.MahApps.Fonts.xaml" />
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.MahApps;component/Themes/MaterialDesignTheme.MahApps.Flyout.xaml" />
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.MahApps;component/Themes/MaterialDesignTheme.MahApps.Flyout.xaml"/>
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.MahApps;component/Themes/MaterialDesignTheme.MahApps.NumericUpDown.xaml"/>
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.MahApps;component/Themes/MaterialDesignTheme.MahApps.RangeSlider.xaml" />
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.MahApps;component/Themes/MaterialDesignTheme.MahApps.WindowCommands.xaml" />
</ResourceDictionary.MergedDictionaries>
Expand Down
Loading

0 comments on commit 98c42e8

Please sign in to comment.