Skip to content

Commit

Permalink
Fix: ToggleButton interaction problem in SplitButton
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 9e00a6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Wpf.Ui/Controls/SplitButton/SplitButton.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
<ControlTemplate TargetType="{x:Type ToggleButton}">
<Border
x:Name="ContentBorder"
Padding="{Binding Padding, RelativeSource={RelativeSource AncestorType=controls:SplitButton}}"
Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
Expand Down Expand Up @@ -119,7 +120,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 9e00a6c

Please sign in to comment.