Skip to content

Commit c0e963a

Browse files
Keboopunker76
authored andcommitted
Fixes #1014
When the double margin bug on cards were fixed it caused the shadow on dialogs to get cropped. Previously the default DialogMargin was 22, which when doubled left 44 units of space around the dialog's card (pleasnty for the 35 needed by shadow Depth5). But when that was cut it half the shadow was then clipped.
1 parent 8306466 commit c0e963a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

MaterialDesignThemes.Wpf/Themes/MaterialDesignTheme.DialogHost.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
</Style>
1515

1616
<Style TargetType="{x:Type wpf:DialogHost}">
17-
<Setter Property="DialogMargin" Value="22" />
17+
<Setter Property="DialogMargin" Value="35" />
1818
<Setter Property="wpf:ShadowAssist.ShadowDepth" Value="Depth5" />
1919
<Setter Property="PopupStyle" Value="{StaticResource MaterialDesignDialogHostPopup}" />
2020
<Setter Property="Template">
@@ -192,7 +192,7 @@
192192
</Style>
193193

194194
<Style x:Key="MaterialDesignEmbeddedDialogHost" TargetType="{x:Type wpf:DialogHost}">
195-
<Setter Property="DialogMargin" Value="22" />
195+
<Setter Property="DialogMargin" Value="35" />
196196
<Setter Property="wpf:ShadowAssist.ShadowDepth" Value="Depth5" />
197197
<Setter Property="HorizontalContentAlignment" Value="Center" />
198198
<Setter Property="VerticalContentAlignment" Value="Center" />

0 commit comments

Comments
 (0)