diff --git a/.paket/paket.exe b/.paket/paket.exe index 74209933b3..e8a9fe360b 100644 Binary files a/.paket/paket.exe and b/.paket/paket.exe differ diff --git a/MahMaterialDragablzMashUp/MahAppsDragablzDemo.csproj b/MahMaterialDragablzMashUp/MahAppsDragablzDemo.csproj index 94ca563844..cfaf12daf4 100644 --- a/MahMaterialDragablzMashUp/MahAppsDragablzDemo.csproj +++ b/MahMaterialDragablzMashUp/MahAppsDragablzDemo.csproj @@ -166,8 +166,9 @@ --> + - + ..\packages\Dragablz\lib\net45\Dragablz.dll @@ -178,7 +179,7 @@ - + ..\packages\MahApps.Metro\lib\net45\MahApps.Metro.dll @@ -193,5 +194,4 @@ - \ No newline at end of file diff --git a/MahMaterialDragablzMashUp/MainWindow.xaml b/MahMaterialDragablzMashUp/MainWindow.xaml index ad43738805..53bd2e88e9 100644 --- a/MahMaterialDragablzMashUp/MainWindow.xaml +++ b/MahMaterialDragablzMashUp/MainWindow.xaml @@ -5,7 +5,7 @@ xmlns:dragablz="clr-namespace:Dragablz;assembly=Dragablz" xmlns:mahMaterialDragablzMashUp="clr-namespace:MahMaterialDragablzMashUp" xmlns:dockablz="clr-namespace:Dragablz.Dockablz;assembly=Dragablz" - xmlns:wpf="http://materialdesigninxaml.net/winfx/xaml/themes" + xmlns:wpf="http://materialdesigninxaml.net/winfx/xaml/themes" WindowTransitionsEnabled="False" TextElement.Foreground="{DynamicResource MaterialDesignBody}" Background="{DynamicResource MaterialDesignPaper}" @@ -14,7 +14,7 @@ Title="Material-MahApps-Dragablz Mash Up" Height="640" Width="800"> - + diff --git a/MainDemo.Wpf/Buttons.xaml b/MainDemo.Wpf/Buttons.xaml index faa92e5094..929ab59120 100644 --- a/MainDemo.Wpf/Buttons.xaml +++ b/MainDemo.Wpf/Buttons.xaml @@ -247,7 +247,7 @@ Mate + IsEnabled="False" IsChecked="True"> Disabled diff --git a/MainDemo.Wpf/Expander.xaml b/MainDemo.Wpf/Expander.xaml index 32006f34bb..34295514fa 100644 --- a/MainDemo.Wpf/Expander.xaml +++ b/MainDemo.Wpf/Expander.xaml @@ -20,7 +20,7 @@ Header="Expander Example 1a"> + Margin="24,8,24,16"> @@ -30,7 +30,7 @@ Header="Expander Example 1b"> + Margin="24,8,24,16"> @@ -40,7 +40,7 @@ Header="Expander Example 1c"> + Margin="24,8,24,16"> @@ -54,27 +54,29 @@ Header="Expander Example 2a"> + Margin="24,8,24,16"> + + Margin="24,8,24,16"> + + Margin="24,8,24,16"> @@ -94,13 +96,14 @@ + Margin="8,24,16,24"> + @@ -111,13 +114,14 @@ + Margin="8,24,16,24"> + @@ -128,7 +132,7 @@ + Margin="8,24,16,24"> --> + @@ -73,7 +74,7 @@ - + ..\packages\xunit.abstractions\lib\net35\xunit.abstractions.dll @@ -84,7 +85,7 @@ - + ..\packages\xunit.assert\lib\portable-net45+win8+wp8+wpa81\xunit.assert.dll @@ -95,7 +96,7 @@ - + ..\packages\xunit.extensibility.core\lib\portable-net45+win8+wp8+wpa81\xunit.core.dll @@ -106,7 +107,7 @@ - + ..\packages\xunit.extensibility.execution\lib\net45\xunit.execution.desktop.dll @@ -116,5 +117,4 @@ - \ No newline at end of file diff --git a/MaterialDesignThemes.MahApps/MaterialDesignThemes.MahApps.csproj b/MaterialDesignThemes.MahApps/MaterialDesignThemes.MahApps.csproj index 1d95067173..f814f8148c 100644 --- a/MaterialDesignThemes.MahApps/MaterialDesignThemes.MahApps.csproj +++ b/MaterialDesignThemes.MahApps/MaterialDesignThemes.MahApps.csproj @@ -116,8 +116,9 @@ --> + - + ..\packages\MahApps.Metro\lib\net45\MahApps.Metro.dll @@ -132,5 +133,4 @@ - \ No newline at end of file diff --git a/MaterialDesignThemes.MahApps/Properties/AssemblyInfo.cs b/MaterialDesignThemes.MahApps/Properties/AssemblyInfo.cs index 44964e9536..366e523ea3 100644 --- a/MaterialDesignThemes.MahApps/Properties/AssemblyInfo.cs +++ b/MaterialDesignThemes.MahApps/Properties/AssemblyInfo.cs @@ -3,6 +3,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Windows; +using System.Windows.Markup; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information @@ -12,7 +13,7 @@ [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("MaterialDesignThemes.MahApps")] -[assembly: AssemblyCopyright("Copyright © 2015")] +[assembly: AssemblyCopyright("Copyright © 2015-2016 James Willock, Mulholland Software & Contributors")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] @@ -51,5 +52,7 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("0.0.6")] -[assembly: AssemblyFileVersion("0.0.6")] +[assembly: AssemblyVersion("0.0.7")] +[assembly: AssemblyFileVersion("0.0.7")] +[assembly: XmlnsPrefix("http://materialdesigninxaml.net/winfx/xaml/themes", "materialDesignMahApps")] +[assembly: XmlnsDefinition("http://materialdesigninxaml.net/winfx/xaml/themes", "MaterialDesignThemes.MahApps")] diff --git a/MaterialDesignThemes.MahApps/Themes/MaterialDesignTheme.MahApps.Flyout.xaml b/MaterialDesignThemes.MahApps/Themes/MaterialDesignTheme.MahApps.Flyout.xaml index 7570669b16..44c0675cda 100644 --- a/MaterialDesignThemes.MahApps/Themes/MaterialDesignTheme.MahApps.Flyout.xaml +++ b/MaterialDesignThemes.MahApps/Themes/MaterialDesignTheme.MahApps.Flyout.xaml @@ -1,54 +1,51 @@  - + - @@ -56,16 +53,16 @@ - + - @@ -74,10 +71,7 @@ - - @@ -86,10 +80,7 @@ - - @@ -101,8 +92,9 @@ - + @@ -113,7 +105,7 @@ + Storyboard.TargetName="PART_Root"> + Storyboard.TargetName="PART_Root"> + Storyboard.TargetName="PART_Root"> + + + + Storyboard.TargetName="PART_Root"> + Storyboard.TargetName="PART_Root"> + Storyboard.TargetName="PART_Root"> @@ -168,19 +167,19 @@ + Storyboard.TargetName="PART_Root"> + Storyboard.TargetName="PART_Root"> + Storyboard.TargetName="PART_Root"> @@ -190,19 +189,19 @@ + Storyboard.TargetName="PART_Root"> + Storyboard.TargetName="PART_Root"> + Storyboard.TargetName="PART_Root"> @@ -210,43 +209,87 @@ - + - + - + - - + + + + + - + + - + + + - - - - + + + + + + + + + + + + + + + + @@ -265,8 +308,12 @@ Value="Stretch" /> - + + + Value="{DynamicResource MaterialDesignPaper}" /> - - - + + + + + + + + + - - - + + + - + \ No newline at end of file diff --git a/MaterialDesignThemes.Wpf.Tests/MaterialDesignThemes.Wpf.Tests.csproj b/MaterialDesignThemes.Wpf.Tests/MaterialDesignThemes.Wpf.Tests.csproj index 3b691501ea..7a8b68a6a3 100644 --- a/MaterialDesignThemes.Wpf.Tests/MaterialDesignThemes.Wpf.Tests.csproj +++ b/MaterialDesignThemes.Wpf.Tests/MaterialDesignThemes.Wpf.Tests.csproj @@ -60,6 +60,7 @@ --> + @@ -116,7 +117,7 @@ - + ..\packages\xunit.abstractions\lib\net35\xunit.abstractions.dll @@ -127,7 +128,7 @@ - + ..\packages\xunit.assert\lib\portable-net45+win8+wp8+wpa81\xunit.assert.dll @@ -138,7 +139,7 @@ - + ..\packages\xunit.extensibility.core\lib\portable-net45+win8+wp8+wpa81\xunit.core.dll @@ -149,7 +150,7 @@ - + ..\packages\xunit.extensibility.execution\lib\net45\xunit.execution.desktop.dll @@ -159,5 +160,4 @@ - \ No newline at end of file diff --git a/MaterialDesignThemes.Wpf/Themes/MaterialDesignTheme.CheckBox.xaml b/MaterialDesignThemes.Wpf/Themes/MaterialDesignTheme.CheckBox.xaml index 2c48efe620..3655e81364 100644 --- a/MaterialDesignThemes.Wpf/Themes/MaterialDesignTheme.CheckBox.xaml +++ b/MaterialDesignThemes.Wpf/Themes/MaterialDesignTheme.CheckBox.xaml @@ -114,7 +114,7 @@ - + @@ -213,7 +213,7 @@ - + diff --git a/MaterialDesignThemes.Wpf/Themes/MaterialDesignTheme.Expander.xaml b/MaterialDesignThemes.Wpf/Themes/MaterialDesignTheme.Expander.xaml index fded5316c3..7b0b8a329c 100644 --- a/MaterialDesignThemes.Wpf/Themes/MaterialDesignTheme.Expander.xaml +++ b/MaterialDesignThemes.Wpf/Themes/MaterialDesignTheme.Expander.xaml @@ -93,28 +93,28 @@ - - - - - - + + + + + + - - - - - + + + + - - + + @@ -127,28 +127,28 @@ - - - - - - + + + + + + - - - - - + + + + - - + + @@ -161,25 +161,25 @@ - - - - - - + + + + + + + - - - + Foreground="{TemplateBinding Foreground}" + IsChecked="{Binding Path=IsChecked, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" + Style="{StaticResource MaterialDesignExpanderToggleButton}"/> + + @@ -192,27 +192,27 @@ - - - - - - + + + + + + - + - - - - - - + + + + + + @@ -271,7 +271,7 @@ - + - + diff --git a/MaterialDesignThemes.Wpf/Transitions/TransitioningContent.cs b/MaterialDesignThemes.Wpf/Transitions/TransitioningContent.cs index 723ed32d4a..a508c603f1 100644 --- a/MaterialDesignThemes.Wpf/Transitions/TransitioningContent.cs +++ b/MaterialDesignThemes.Wpf/Transitions/TransitioningContent.cs @@ -26,6 +26,7 @@ public TransitioningContent() { Loaded += (sender, args) => Run(TransitioningContentRunHint.Loaded); IsVisibleChanged += (sender, args) => Run(TransitioningContentRunHint.IsVisibleChanged); + } public static readonly DependencyProperty RunHintProperty = DependencyProperty.Register( diff --git a/MaterialDesignThemes.Wpf/Transitions/TransitioningContentBase.cs b/MaterialDesignThemes.Wpf/Transitions/TransitioningContentBase.cs index caa005d0ef..3a0adcc1e5 100644 --- a/MaterialDesignThemes.Wpf/Transitions/TransitioningContentBase.cs +++ b/MaterialDesignThemes.Wpf/Transitions/TransitioningContentBase.cs @@ -23,6 +23,8 @@ public class TransitioningContentBase : ContentControl, ITransitionEffectSubject private SkewTransform _skewTransform; private TranslateTransform _translateTransform; + private bool _isOpeningEffectPending = false; + static TransitioningContentBase() { DefaultStyleKeyProperty.OverrideMetadata(typeof (TransitioningContentBase), new FrameworkPropertyMetadata(typeof (TransitioningContentBase))); @@ -51,9 +53,11 @@ public override void OnApplyTemplate() if (_skewTransform != null) RegisterName(SkewTransformPartName, _skewTransform); if (_translateTransform != null) - RegisterName(TranslateTransformPartName, _translateTransform); + RegisterName(TranslateTransformPartName, _translateTransform); base.OnApplyTemplate(); + + RunOpeningEffects(); } private void UnregisterNames(params string[] names) @@ -107,7 +111,12 @@ public TimeSpan OpeningEffectsOffset protected virtual void RunOpeningEffects() { - if (!IsLoaded) return; + if (!IsLoaded || _matrixTransform == null) + { + _isOpeningEffectPending = true; + return; + } + _isOpeningEffectPending = false; var storyboard = new Storyboard(); var openingEffect = OpeningEffect?.Build(this); diff --git a/paket.dependencies b/paket.dependencies index 55befb9a91..499138805b 100644 --- a/paket.dependencies +++ b/paket.dependencies @@ -1,7 +1,7 @@ source https://nuget.org/api/v2 framework >= net45 -nuget MahApps.Metro ~> 1.2.4 +nuget MahApps.Metro ~> 1.3 nuget Dragablz 0.0.3.165 nuget Moq 4.5.10 framework: = net452 nuget NSubstitute 1.10.0 framework: = net452 diff --git a/paket.lock b/paket.lock index 140e3b066f..55423b9839 100644 --- a/paket.lock +++ b/paket.lock @@ -3,7 +3,7 @@ NUGET remote: https://www.nuget.org/api/v2 Castle.Core (3.3.3) - framework: net452 Dragablz (0.0.3.165) - MahApps.Metro (1.2.4) + MahApps.Metro (1.3) Moq (4.5.10) - framework: net452 Castle.Core (>= 3.3.3) NSubstitute (1.10) - framework: net452