This commit is contained in:
NaBian committed 2020-04-19 13:29:19 +08:00
1 parent f4087574c0
commit 61ee9a5337
5 files changed
+181 -58

No files matched your search

@@ -0,0 +1,18 @@
using System.Windows;
using HandyControl.Data;
namespace HandyControl.Controls
{
public class DropDownElement
{
public static readonly DependencyProperty ConsistentWidthProperty = DependencyProperty.RegisterAttached(
"ConsistentWidth", typeof(bool), typeof(DropDownElement),
new FrameworkPropertyMetadata(ValueBoxes.TrueBox, FrameworkPropertyMetadataOptions.Inherits));
public static void SetConsistentWidth(DependencyObject element, bool value)
=> element.SetValue(ConsistentWidthProperty, value);
public static bool GetConsistentWidth(DependencyObject element)
=> (bool) element.GetValue(ConsistentWidthProperty);
}
}