Files
HandyControl/HandyControl/Controls/Attach/StatusSwitchElement.cs
T
2018-08-23 19:49:08 +08:00

15 lines
635 B
C#

using System.Windows;
// ReSharper disable once CheckNamespace
namespace HandyControl.Controls
{
public class StatusSwitchElement
{
public static readonly DependencyProperty CheckedElementProperty = DependencyProperty.RegisterAttached(
"CheckedElement", typeof(object), typeof(StatusSwitchElement), new PropertyMetadata(default(object)));
public static void SetCheckedElement(DependencyObject element, object value) => element.SetValue(CheckedElementProperty, value);
public static object GetCheckedElement(DependencyObject element) => element.GetValue(CheckedElementProperty);
}
}