跳到主要内容

github/tai

公开

Tai · Windows 软件与网站使用时长统计。上游 Planshit/Tai 的源码镜像,非灵栈原创;MIT 许可。来源:https://github.com/Planshit/Tai 。本次为手动同步,暂不提供安装包。

浏览文件

CheckBox.cs

32 行 · 885 B历史下载
1using System;
2using System.Collections.Generic;
3using System.Text;
4using System.Windows;
5using System.Windows.Controls;
6using System.Windows.Media;
7
8namespace 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}