Skip to content

Commit c0217b2

Browse files
authored
Fixing clip of ripple when padding is set on a card (#2454)
1 parent 01bd2c8 commit c0217b2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

MaterialDesignThemes.Wpf/Themes/MaterialDesignTheme.Card.xaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
1+
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
22
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
33
xmlns:wpf="clr-namespace:MaterialDesignThemes.Wpf"
44
xmlns:converters="clr-namespace:MaterialDesignThemes.Wpf.Converters">
@@ -13,7 +13,7 @@
1313
<ControlTemplate.Resources>
1414
<converters:ShadowEdgeConverter x:Key="ShadowEdgeConverter" />
1515
</ControlTemplate.Resources>
16-
<Grid Background="Transparent">
16+
<Grid Background="Transparent" Clip="{TemplateBinding ContentClip}">
1717
<AdornerDecorator CacheMode="{Binding RelativeSource={RelativeSource Self}, Path=(wpf:ShadowAssist.CacheMode)}">
1818
<AdornerDecorator.OpacityMask>
1919
<MultiBinding Converter="{StaticResource ShadowEdgeConverter}">
@@ -33,7 +33,6 @@
3333
<ContentPresenter
3434
x:Name="ContentPresenter"
3535
Margin="{TemplateBinding Padding}"
36-
Clip="{TemplateBinding ContentClip}"
3736
Content="{TemplateBinding ContentControl.Content}"
3837
ContentTemplate="{TemplateBinding ContentControl.ContentTemplate}"
3938
ContentTemplateSelector="{TemplateBinding ContentControl.ContentTemplateSelector}"

0 commit comments

Comments
 (0)