* UICheckBox:更改点击值切换事件

This commit is contained in:
Sunny 2020-07-17 20:50:01 +08:00
parent ec907e54b8
commit 26c2013848
4 changed files with 2 additions and 1 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -152,11 +152,12 @@ namespace Sunny.UI
protected override void OnClick(EventArgs e) protected override void OnClick(EventArgs e)
{ {
base.OnClick(e);
if (!ReadOnly) if (!ReadOnly)
{ {
Checked = !Checked; Checked = !Checked;
} }
base.OnClick(e);
} }
public override void SetStyleColor(UIBaseStyle uiColor) public override void SetStyleColor(UIBaseStyle uiColor)