Skip to content

Commit 04e7dd5

Browse files
committed
allow custom padding on popupbox
1 parent de9fe05 commit 04e7dd5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

MaterialDesignThemes.Wpf/Themes/MaterialDesignTheme.PopupBox.xaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
<Setter Property="HorizontalAlignment" Value="Left" />
2424
<Setter Property="wpf:ShadowAssist.ShadowDepth" Value="Depth3" />
2525
<Setter Property="TextElement.FontWeight" Value="Normal" />
26+
<Setter Property="Padding" Value="0 8 0 8" />
2627
<Setter Property="Template">
2728
<Setter.Value>
2829
<ControlTemplate TargetType="{x:Type wpf:PopupBox}">
@@ -61,7 +62,7 @@
6162
Foreground="{DynamicResource MaterialDesignBody}"
6263
FontSize="15"
6364
FontWeight="Regular"
64-
Padding="0 8 0 8"
65+
Padding="{TemplateBinding Padding}"
6566
RenderOptions.ClearTypeHint="Enabled"
6667
Margin="5">
6768
<wpf:Card.Resources>

0 commit comments

Comments
 (0)