From b2e86a1eb0080684007064108413cd834ecd2180 Mon Sep 17 00:00:00 2001 From: Jan Karger Date: Fri, 11 May 2018 12:35:44 +0200 Subject: [PATCH] (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}" /> + +