chore(style): add GroupBox small style.

This commit is contained in:
NaBian committed 2022-10-06 19:50:46 +08:00
1 parent 5e364ff1e7
commit 8b52df3a06
6 files changed
+164 -85

No files matched your search

@@ -84,4 +84,25 @@ public class TitleElement
public static Thickness GetMarginOnTheLeft(DependencyObject element)
=> (Thickness) element.GetValue(MarginOnTheLeftProperty);
public static readonly DependencyProperty PaddingProperty = DependencyProperty.RegisterAttached(
"Padding", typeof(Thickness), typeof(TitleElement), new FrameworkPropertyMetadata(default(Thickness), FrameworkPropertyMetadataOptions.Inherits));
public static void SetPadding(DependencyObject element, Thickness value) => element.SetValue(PaddingProperty, value);
public static Thickness GetPadding(DependencyObject element) => (Thickness) element.GetValue(PaddingProperty);
public static readonly DependencyProperty MinHeightProperty =
DependencyProperty.RegisterAttached("MinHeight", typeof(double), typeof(TitleElement), new PropertyMetadata(ValueBoxes.Double0Box));
public static double GetMinHeight(DependencyObject obj) => (double) obj.GetValue(MinHeightProperty);
public static void SetMinHeight(DependencyObject obj, double value) => obj.SetValue(MinHeightProperty, value);
public static readonly DependencyProperty MinWidthProperty =
DependencyProperty.RegisterAttached("MinWidth", typeof(double), typeof(TitleElement), new PropertyMetadata(ValueBoxes.Double0Box));
public static double GetMinWidth(DependencyObject obj) => (double) obj.GetValue(MinWidthProperty);
public static void SetMinWidth(DependencyObject obj, double value) => obj.SetValue(MinWidthProperty, value);
}