From cf32ec1d6549580735be0694a1b64dac5f377efb Mon Sep 17 00:00:00 2001 From: Tim Date: Sun, 10 May 2020 14:01:46 +0200 Subject: [PATCH] Change default CanResizeOpenPane to false and add ToggleSwitches to Demo --- .../MahApps.Metro.Demo/App.xaml | 29 +++++ .../HamburgerMenuCreatorsUpdate.xaml | 5 + .../ExampleViews/HamburgerMenuDefault.xaml | 4 + .../ExampleViews/SplitViewExamples.xaml | 102 +++++++----------- .../HamburgerMenuRipple.xaml | 4 + .../HamburgerMenu/HamburgerMenu.Properties.cs | 4 +- .../Controls/SplitView/SplitView.cs | 4 +- src/MahApps.Metro/Themes/HamburgerMenu.xaml | 2 +- src/MahApps.Metro/Themes/SplitView.xaml | 5 +- 9 files changed, 86 insertions(+), 73 deletions(-) diff --git a/src/MahApps.Metro.Samples/MahApps.Metro.Demo/App.xaml b/src/MahApps.Metro.Samples/MahApps.Metro.Demo/App.xaml index ee751430bb..642330bb3b 100644 --- a/src/MahApps.Metro.Samples/MahApps.Metro.Demo/App.xaml +++ b/src/MahApps.Metro.Samples/MahApps.Metro.Demo/App.xaml @@ -35,6 +35,35 @@ + + diff --git a/src/MahApps.Metro.Samples/MahApps.Metro.Demo/ExampleViews/HamburgerMenuCreatorsUpdate.xaml b/src/MahApps.Metro.Samples/MahApps.Metro.Demo/ExampleViews/HamburgerMenuCreatorsUpdate.xaml index 918f775efa..31617ffe34 100644 --- a/src/MahApps.Metro.Samples/MahApps.Metro.Demo/ExampleViews/HamburgerMenuCreatorsUpdate.xaml +++ b/src/MahApps.Metro.Samples/MahApps.Metro.Demo/ExampleViews/HamburgerMenuCreatorsUpdate.xaml @@ -115,6 +115,11 @@ Header="IsPaneOpen:" IsOn="{Binding ElementName=HamburgerMenuControl, Path=IsPaneOpen, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" /> + + + + + - - - - - - - - - - - - - - - - - - - - +