12345678910111213141516171819202122232425262728 |
- 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));
- }
- }
- }
|