Skip to content

Commit 693ed7d

Browse files
authored
Changed GroupBoxAssist.HeaderPadding to Thickness (#3591)
1 parent e9f6b1f commit 693ed7d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/MaterialDesignThemes.Wpf/GroupBoxAssist.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
public static class GroupBoxAssist
44
{
5-
private const double DefaultHeaderPadding = 9.0;
5+
private static readonly Thickness DefaultHeaderPaddingThickness = new(9, 9, 9, 9);
66

77
#region AttachedProperty : HeaderPaddingProperty
88
public static readonly DependencyProperty HeaderPaddingProperty
9-
= DependencyProperty.RegisterAttached("HeaderPadding", typeof(double), typeof(GroupBoxAssist), new PropertyMetadata(DefaultHeaderPadding));
9+
= DependencyProperty.RegisterAttached("HeaderPadding", typeof(Thickness), typeof(GroupBoxAssist), new PropertyMetadata(DefaultHeaderPaddingThickness));
1010

11-
public static double GetHeaderPadding(GroupBox element) => (double)element.GetValue(HeaderPaddingProperty);
12-
public static void SetHeaderPadding(GroupBox element, double headerPadding) => element.SetValue(HeaderPaddingProperty, headerPadding);
11+
public static Thickness GetHeaderPadding(GroupBox element) => (Thickness)element.GetValue(HeaderPaddingProperty);
12+
public static void SetHeaderPadding(GroupBox element, Thickness headerPadding) => element.SetValue(HeaderPaddingProperty, headerPadding);
1313
#endregion
1414
}

0 commit comments

Comments
 (0)