using System.Windows; using System.Windows.Controls; namespace OpenSEMI.Ctrlib.Controls { public class SwitchButton : Button { public static readonly DependencyProperty ONProperty; public bool ON { get { return (bool)GetValue(ONProperty); } set { SetValue(ONProperty, value); } } static SwitchButton() { ONProperty = DependencyProperty.Register("ON", typeof(bool), typeof(SwitchButton)); } } }