-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GroupBoxAssist.HeaderPadding (#3569)
- Loading branch information
1 parent
3aa4967
commit 8585b3e
Showing
3 changed files
with
53 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
namespace MaterialDesignThemes.Wpf; | ||
|
||
public static class GroupBoxAssist | ||
{ | ||
private const double DefaultHeaderPadding = 9.0; | ||
|
||
#region AttachedProperty : HeaderPaddingProperty | ||
public static readonly DependencyProperty HeaderPaddingProperty | ||
= DependencyProperty.RegisterAttached("HeaderPadding", typeof(double), typeof(GroupBoxAssist), new PropertyMetadata(DefaultHeaderPadding)); | ||
|
||
public static double GetHeaderPadding(GroupBox element) => (double)element.GetValue(HeaderPaddingProperty); | ||
public static void SetHeaderPadding(GroupBox element, double headerPadding) => element.SetValue(HeaderPaddingProperty, headerPadding); | ||
#endregion | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters