From 143d110e66cc4b42b70679f79ac588fd0ba21240 Mon Sep 17 00:00:00 2001 From: Yimeng Wu Date: Sat, 4 Nov 2023 22:29:48 +0000 Subject: [PATCH] Port microsoft/microsoft-ui-xaml#4277 (#595) --- .../DropDownButton/DropDownButton.xaml | 6 +- .../NavigationView/NavigationView.xaml | 26 +++++- ModernWpf/Styles/AutoSuggestBox.xaml | 8 +- ModernWpf/Styles/CheckBox.xaml | 91 +++++++++++-------- ModernWpf/Styles/NavigationView.xaml | 17 ++-- test/ModernWpfTestApp/AutoSuggestBoxPage.xaml | 16 ++-- test/ModernWpfTestApp/CheckBoxPage.xaml | 29 ++---- test/ModernWpfTestApp/CheckBoxPage.xaml.cs | 16 ++++ ...vigationViewCompactPaneLengthTestPage.xaml | 6 +- 9 files changed, 128 insertions(+), 87 deletions(-) diff --git a/ModernWpf.Controls/DropDownButton/DropDownButton.xaml b/ModernWpf.Controls/DropDownButton/DropDownButton.xaml index 6948735a..8bc7bdf8 100644 --- a/ModernWpf.Controls/DropDownButton/DropDownButton.xaml +++ b/ModernWpf.Controls/DropDownButton/DropDownButton.xaml @@ -51,7 +51,7 @@ SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" /> - + - + diff --git a/ModernWpf.Controls/NavigationView/NavigationView.xaml b/ModernWpf.Controls/NavigationView/NavigationView.xaml index 8ab3af3c..1d2db22f 100644 --- a/ModernWpf.Controls/NavigationView/NavigationView.xaml +++ b/ModernWpf.Controls/NavigationView/NavigationView.xaml @@ -225,6 +225,9 @@ + + + @@ -232,6 +235,9 @@ + + + @@ -302,7 +308,10 @@ Margin="{DynamicResource NavigationViewItemExpandChevronMargin}" Background="Transparent"> + + + @@ -523,6 +535,9 @@ + + + @@ -569,15 +584,18 @@ Margin="{DynamicResource TopNavigationViewItemExpandChevronMargin}" Background="Transparent"> - + @@ -776,15 +794,17 @@ - + diff --git a/ModernWpf/Styles/AutoSuggestBox.xaml b/ModernWpf/Styles/AutoSuggestBox.xaml index 7ff6a507..764530bf 100644 --- a/ModernWpf/Styles/AutoSuggestBox.xaml +++ b/ModernWpf/Styles/AutoSuggestBox.xaml @@ -11,7 +11,8 @@ 0,0,0,8 - 0,4,0,4 + 0,3 + 3,2 4