From 5f90f4f0ddde352d2be44f41195d1ac78ce59d01 Mon Sep 17 00:00:00 2001 From: Aurel Hudec Date: Sat, 5 May 2018 15:22:38 +0100 Subject: [PATCH 1/5] Fix for Track's height inside Slider. --- src/MahApps.Metro/Styles/FlatSlider.xaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MahApps.Metro/Styles/FlatSlider.xaml b/src/MahApps.Metro/Styles/FlatSlider.xaml index 08680e71e9..9183ee12b1 100644 --- a/src/MahApps.Metro/Styles/FlatSlider.xaml +++ b/src/MahApps.Metro/Styles/FlatSlider.xaml @@ -84,7 +84,7 @@ Style="{DynamicResource MahApps.Metro.Styles.FlatSlider.TickBar}" /> + Height="{TemplateBinding Slider.Height}"> Date: Thu, 10 May 2018 17:35:59 +0200 Subject: [PATCH 2/5] (GH-3238) fix FlatSlider height usage (works now together with vertical and horizontal content alignement) --- src/MahApps.Metro/Styles/FlatSlider.xaml | 50 +++++++++--------------- 1 file changed, 18 insertions(+), 32 deletions(-) diff --git a/src/MahApps.Metro/Styles/FlatSlider.xaml b/src/MahApps.Metro/Styles/FlatSlider.xaml index 9183ee12b1..92698f457f 100644 --- a/src/MahApps.Metro/Styles/FlatSlider.xaml +++ b/src/MahApps.Metro/Styles/FlatSlider.xaml @@ -68,10 +68,10 @@ TargetType="TickBar" /> - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + + + From d2d09eb2941a1937a628cd9f6d1af1fa96d332b7 Mon Sep 17 00:00:00 2001 From: Jan Karger Date: Thu, 10 May 2018 17:37:45 +0200 Subject: [PATCH 3/5] (GH-3238) fix Slider and RangeSlider height usage too (works now together with vertical and horizontal content alignement) --- src/MahApps.Metro/Styles/Controls.Slider.xaml | 28 +++++++++++++------ src/MahApps.Metro/Themes/RangeSlider.xaml | 28 +++++++++++++------ 2 files changed, 40 insertions(+), 16 deletions(-) diff --git a/src/MahApps.Metro/Styles/Controls.Slider.xaml b/src/MahApps.Metro/Styles/Controls.Slider.xaml index 9219be1141..cfedf8f14e 100644 --- a/src/MahApps.Metro/Styles/Controls.Slider.xaml +++ b/src/MahApps.Metro/Styles/Controls.Slider.xaml @@ -85,10 +85,12 @@ - + - + - + - + + + @@ -616,10 +622,12 @@ - + - + - + - + + + diff --git a/src/MahApps.Metro/Themes/RangeSlider.xaml b/src/MahApps.Metro/Themes/RangeSlider.xaml index 1e54b50cd6..4a1fda46c4 100644 --- a/src/MahApps.Metro/Themes/RangeSlider.xaml +++ b/src/MahApps.Metro/Themes/RangeSlider.xaml @@ -33,10 +33,12 @@ - + - + - + - + + + @@ -324,10 +330,12 @@ - + - + - + - + + + From b2e86a1eb0080684007064108413cd834ecd2180 Mon Sep 17 00:00:00 2001 From: Jan Karger Date: Fri, 11 May 2018 12:35:44 +0200 Subject: [PATCH 4/5] (GH-3244) Left-/ RightWindowCommands no more visible when ShowTitleBar is False This feature will be there, but the window commands can now be used again to bring these back --- .../ExampleWindows/FlyoutDemo.xaml | 23 +++++++++++-------- src/MahApps.Metro/Controls/MetroWindow.cs | 20 ++++++++-------- 2 files changed, 23 insertions(+), 20 deletions(-) diff --git a/src/MahApps.Metro.Samples/MahApps.Metro.Demo/ExampleWindows/FlyoutDemo.xaml b/src/MahApps.Metro.Samples/MahApps.Metro.Demo/ExampleWindows/FlyoutDemo.xaml index 29d1796573..bc4d75a32f 100644 --- a/src/MahApps.Metro.Samples/MahApps.Metro.Demo/ExampleWindows/FlyoutDemo.xaml +++ b/src/MahApps.Metro.Samples/MahApps.Metro.Demo/ExampleWindows/FlyoutDemo.xaml @@ -28,12 +28,13 @@ - - Always - Flyouts - HiddenTitleBar - Never - + + + + + @@ -445,7 +446,7 @@ Width="100" Margin="2" VerticalAlignment="Center" - ItemsSource="{StaticResource WindowCommandsOverlayBehaviorArray}" + ItemsSource="{Binding Source={StaticResource WindowCommandsOverlayBehaviorValues}}" SelectedValue="{Binding ElementName=flyoutsDemo, Path=LeftWindowCommandsOverlayBehavior}" /> @@ -462,7 +463,7 @@ Width="100" Margin="2" VerticalAlignment="Center" - ItemsSource="{StaticResource WindowCommandsOverlayBehaviorArray}" + ItemsSource="{Binding Source={StaticResource WindowCommandsOverlayBehaviorValues}}" SelectedValue="{Binding ElementName=flyoutsDemo, Path=RightWindowCommandsOverlayBehavior}" /> @@ -479,7 +480,7 @@ Width="100" Margin="2" VerticalAlignment="Center" - ItemsSource="{StaticResource WindowCommandsOverlayBehaviorArray}" + ItemsSource="{Binding Source={StaticResource WindowCommandsOverlayBehaviorValues}}" SelectedValue="{Binding ElementName=flyoutsDemo, Path=WindowButtonCommandsOverlayBehavior}" /> @@ -496,10 +497,12 @@ Width="100" Margin="2" VerticalAlignment="Center" - ItemsSource="{StaticResource WindowCommandsOverlayBehaviorArray}" + ItemsSource="{Binding Source={StaticResource WindowCommandsOverlayBehaviorValues}}" SelectedValue="{Binding ElementName=flyoutsDemo, Path=IconOverlayBehavior}" /> + +