From 94269c59e7d9f85aa33937e0956fd4c678dcdb6e Mon Sep 17 00:00:00 2001 From: Yimeng Wu Date: Wed, 9 Nov 2022 02:43:06 +0800 Subject: [PATCH] Port microsoft/microsoft-ui-xaml#3993 (#528) --- .../CommandBar/AppBarButton.xaml | 39 +++-- .../CommandBar/AppBarToggleButton.xaml | 115 +++++-------- ModernWpf.Controls/CommandBar/CommandBar.xaml | 14 ++ ModernWpf/Styles/CommandBar.xaml | 73 ++++---- ModernWpf/ThemeResources/Dark.xaml | 161 +++++++++--------- ModernWpf/ThemeResources/HighContrast.xaml | 6 +- ModernWpf/ThemeResources/Light.xaml | 161 +++++++++--------- test/ModernWpfTestApp/CommandBarPage.xaml | 70 ++++++++ test/ModernWpfTestApp/CommandBarPage.xaml.cs | 16 ++ .../ModernWpfTestApp/CommonStylesPage.xaml.cs | 22 +-- 10 files changed, 375 insertions(+), 302 deletions(-) create mode 100644 test/ModernWpfTestApp/CommandBarPage.xaml create mode 100644 test/ModernWpfTestApp/CommandBarPage.xaml.cs diff --git a/ModernWpf.Controls/CommandBar/AppBarButton.xaml b/ModernWpf.Controls/CommandBar/AppBarButton.xaml index 5e3d17f0..cb7612b1 100644 --- a/ModernWpf.Controls/CommandBar/AppBarButton.xaml +++ b/ModernWpf.Controls/CommandBar/AppBarButton.xaml @@ -15,6 +15,7 @@ + @@ -23,12 +24,9 @@ @@ -73,10 +71,13 @@ - + + @@ -152,6 +153,7 @@ + @@ -212,9 +214,8 @@ - - - + + @@ -222,9 +223,8 @@ - - - + + @@ -232,9 +232,8 @@ - - - + + @@ -244,7 +243,7 @@ - + @@ -255,7 +254,7 @@ - + @@ -266,7 +265,7 @@ + @@ -181,7 +175,6 @@ - @@ -195,7 +188,6 @@ - @@ -204,94 +196,81 @@ - - - + + - + - - - + + - + - - - + + - + - - + + - - - - + + - - - + - - - + + - - - + - - - + + - - + - - + - + @@ -300,9 +279,9 @@ - + - + @@ -312,39 +291,33 @@ - - - - - + + + + + - - + - - - + - + - - + + - - - + - diff --git a/ModernWpf.Controls/CommandBar/CommandBar.xaml b/ModernWpf.Controls/CommandBar/CommandBar.xaml index 60bbc234..ab1faa34 100644 --- a/ModernWpf.Controls/CommandBar/CommandBar.xaml +++ b/ModernWpf.Controls/CommandBar/CommandBar.xaml @@ -5,6 +5,16 @@ xmlns:primitives="clr-namespace:ModernWpf.Controls.Primitives" xmlns:ui="http://schemas.modernwpf.com/2019"> + + + +