diff --git a/ModernWpf.Controls/SplitButton/SplitButton.cs b/ModernWpf.Controls/SplitButton/SplitButton.cs index 3d624820..ecbccdfa 100644 --- a/ModernWpf.Controls/SplitButton/SplitButton.cs +++ b/ModernWpf.Controls/SplitButton/SplitButton.cs @@ -254,7 +254,14 @@ internal void UpdateVisualStates(bool useTransitions = true) { if (m_isFlyoutOpen) { - VisualStateManager.GoToState(this, "FlyoutOpen", useTransitions); + if (InternalIsChecked) + { + VisualStateManager.GoToState(this, "CheckedFlyoutOpen", useTransitions); + } + else + { + VisualStateManager.GoToState(this, "FlyoutOpen", useTransitions); + } } // SplitButton and ToggleSplitButton share a template -- this section is driving the checked states for ToggleSplitButton. else if (InternalIsChecked) diff --git a/ModernWpf.Controls/SplitButton/SplitButton.xaml b/ModernWpf.Controls/SplitButton/SplitButton.xaml index 9d10aba3..a9dfb24a 100644 --- a/ModernWpf.Controls/SplitButton/SplitButton.xaml +++ b/ModernWpf.Controls/SplitButton/SplitButton.xaml @@ -10,8 +10,8 @@ - 32 - 32 + 35 + 35 @@ -30,7 +30,7 @@ - + @@ -163,7 +163,7 @@ Grid.Column="0" Foreground="{TemplateBinding Foreground}" Background="{TemplateBinding Background}" - BorderThickness="{TemplateBinding BorderThickness}" + BorderThickness="0" BorderBrush="Transparent" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" @@ -185,21 +185,22 @@ Grid.Column="2" Foreground="{DynamicResource SplitButtonForegroundSecondary}" Background="{TemplateBinding Background}" - BorderThickness="{TemplateBinding BorderThickness}" + BorderThickness="0" BorderBrush="Transparent" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" - Padding="0,0,9,0" + Padding="0,0,12,0" Focusable="False"> @@ -225,34 +226,26 @@ - - - - - - - - @@ -288,7 +281,6 @@ - @@ -299,7 +291,6 @@ - @@ -312,7 +303,6 @@ - @@ -323,7 +313,6 @@ - diff --git a/ModernWpf/ThemeResources/Dark.xaml b/ModernWpf/ThemeResources/Dark.xaml index 583f62c8..1a50ae1b 100644 --- a/ModernWpf/ThemeResources/Dark.xaml +++ b/ModernWpf/ThemeResources/Dark.xaml @@ -1481,7 +1481,7 @@ - + 1 diff --git a/ModernWpf/ThemeResources/Light.xaml b/ModernWpf/ThemeResources/Light.xaml index 66b36dcd..2d85d6dd 100644 --- a/ModernWpf/ThemeResources/Light.xaml +++ b/ModernWpf/ThemeResources/Light.xaml @@ -1483,7 +1483,7 @@ - + 1