Skip to content

Commit 159d487

Browse files
committed
use card on calendar to improve clipping
1 parent a033288 commit 159d487

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

MaterialDesignThemes.Wpf/Themes/MaterialDesignTheme.Calendar.xaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -311,8 +311,7 @@
311311
</VisualState>
312312
</VisualStateGroup>
313313
</VisualStateManager.VisualStateGroups>
314-
<Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" CornerRadius="2"
315-
ClipToBounds="True">
314+
<wpf:Card UniformCornerRadius="2" Background="{TemplateBinding Background}" wpf:ShadowAssist.ShadowDepth="Depth0">
316315
<Grid>
317316
<Grid.Resources>
318317
<ControlTemplate x:Key="PreviousButtonTemplate" TargetType="{x:Type Button}">
@@ -492,7 +491,7 @@
492491
</Grid>
493492
</Grid>
494493
</Grid>
495-
</Border>
494+
</wpf:Card>
496495
<Rectangle x:Name="PART_DisabledVisual" Fill="{StaticResource DisabledColor}" Opacity="0" RadiusY="2" RadiusX="2" Stretch="Fill" Stroke="{StaticResource DisabledColor}" StrokeThickness="1" Visibility="Collapsed"/>
497496
</Grid>
498497
<ControlTemplate.Triggers>

0 commit comments

Comments
 (0)