* UICheckBox: 值相同时不响应值改变事件
This commit is contained in:
parent
f3058c2d5d
commit
01ce6f5eaf
Binary file not shown.
@ -131,9 +131,13 @@ namespace Sunny.UI
|
||||
get => _checked;
|
||||
set
|
||||
{
|
||||
_checked = value;
|
||||
ValueChanged?.Invoke(this, _checked);
|
||||
CheckedChanged?.Invoke(this, new EventArgs());
|
||||
if (_checked != value)
|
||||
{
|
||||
_checked = value;
|
||||
ValueChanged?.Invoke(this, _checked);
|
||||
CheckedChanged?.Invoke(this, new EventArgs());
|
||||
}
|
||||
|
||||
Invalidate();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user