Skip to content

Commit febcef3

Browse files
authored
fix: Clip ripple effect for default Button style in materialDesign:PopupBox (#3983)
* fix: Clip ripple effect for default Button style in `materialDesign:PopupBox` Use the BorderClipConverter to clip the ripple to the bounds of the button * refactor: leverage ClipToBounds instead of a custom converter Set ClipToBounds="True" instead of using the `BorderClipConverter` in the Button ControlTemplate to prevent child elements from rendering outside the template boundaries.
1 parent 1992ac7 commit febcef3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MaterialDesignThemes.Wpf/Themes/MaterialDesignTheme.PopupBox.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<Setter Property="Template">
1818
<Setter.Value>
1919
<ControlTemplate TargetType="{x:Type Button}">
20-
<Grid>
20+
<Grid ClipToBounds="True">
2121
<VisualStateManager.VisualStateGroups>
2222
<VisualStateGroup Name="CommonStates">
2323
<VisualStateGroup.Transitions>

0 commit comments

Comments
 (0)