Skip to content

Commit

Permalink
Fix: ToggleButton interaction problem in SplitButton (#1179)
Browse files Browse the repository at this point in the history
* fix: ToggleButton interaction problem in SplitButton

The flyout is displayed only when the button's image is clicked precisely, and this is inconvenient for the user.
  • Loading branch information
newtype0096 committed Dec 23, 2024
1 parent baa55d4 commit 90c556a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Wpf.Ui/Controls/SplitButton/SplitButton.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@
<ControlTemplate TargetType="{x:Type ToggleButton}">
<Border
x:Name="ContentBorder"
Margin="0,-1,-1,-1"
Padding="11,0"
Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
Expand Down Expand Up @@ -119,7 +121,6 @@
<Border
Grid.Column="1"
Margin="0"
Padding="{TemplateBinding Padding}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness,
Converter={StaticResource RightSplitThicknessConverter}}"
Expand Down

0 comments on commit 90c556a

Please sign in to comment.