This commit is contained in:
NaBian committed 2020-12-10 00:01:47 +08:00
1 parent e568ed0586
commit 9f2f6883be
4 files changed
+142 -28

No files matched your search

@@ -14,5 +14,15 @@ namespace HandyControl.Controls
public static bool GetConsistentWidth(DependencyObject element)
=> (bool) element.GetValue(ConsistentWidthProperty);
public static readonly DependencyProperty AutoWidthProperty = DependencyProperty.RegisterAttached(
"AutoWidth", typeof(bool), typeof(DropDownElement),
new FrameworkPropertyMetadata(ValueBoxes.FalseBox, FrameworkPropertyMetadataOptions.Inherits));
public static void SetAutoWidth(DependencyObject element, bool value)
=> element.SetValue(AutoWidthProperty, value);
public static bool GetAutoWidth(DependencyObject element)
=> (bool) element.GetValue(AutoWidthProperty);
}
}