| 1 | using System; |
| 2 | using System.Collections.Generic; |
| 3 | using System.Text; |
| 4 | using System.Windows; |
| 5 | using System.Windows.Controls; |
| 6 | using System.Windows.Media; |
| 7 | |
| 8 | namespace UI.Controls.Base |
| 9 | { |
| 10 | public class CheckBox : Control |
| 11 | { |
| 12 | public bool IsChecked |
| 13 | { |
| 14 | get { return (bool)GetValue(IsCheckedProperty); } |
| 15 | set { SetValue(IsCheckedProperty, value); } |
| 16 | } |
| 17 | public static readonly DependencyProperty IsCheckedProperty = |
| 18 | DependencyProperty.Register("IsChecked", |
| 19 | typeof(bool), |
| 20 | typeof(CheckBox), new PropertyMetadata(false, new PropertyChangedCallback(OnPropertyChanged))); |
| 21 | |
| 22 | private static void OnPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) |
| 23 | { |
| 24 | |
| 25 | } |
| 26 | |
| 27 | public CheckBox() |
| 28 | { |
| 29 | DefaultStyleKey = typeof(CheckBox); |
| 30 | } |
| 31 | } |
| 32 | } |