diff --git a/SunnyUI.Demo/Bin/SunnyUI.Demo.exe b/SunnyUI.Demo/Bin/SunnyUI.Demo.exe index 558edc6a..7fb9a6c8 100644 Binary files a/SunnyUI.Demo/Bin/SunnyUI.Demo.exe and b/SunnyUI.Demo/Bin/SunnyUI.Demo.exe differ diff --git a/SunnyUI/Controls/UICheckBox.cs b/SunnyUI/Controls/UICheckBox.cs index ceb755e2..338b6e80 100644 --- a/SunnyUI/Controls/UICheckBox.cs +++ b/SunnyUI/Controls/UICheckBox.cs @@ -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(); } }