From f6b8bdbeef23de6eea8d53692c2839f5561d4d2c Mon Sep 17 00:00:00 2001 From: NaBian <836904362@qq.com> Date: Thu, 27 Jul 2023 23:11:37 +0800 Subject: [PATCH] fix: CheckComboBox ShowSelectAllButton issue. --- .../Controls/Input/CheckComboBox/CheckComboBox.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Shared/HandyControl_Shared/Controls/Input/CheckComboBox/CheckComboBox.cs b/src/Shared/HandyControl_Shared/Controls/Input/CheckComboBox/CheckComboBox.cs index 85a73296..efa615f8 100644 --- a/src/Shared/HandyControl_Shared/Controls/Input/CheckComboBox/CheckComboBox.cs +++ b/src/Shared/HandyControl_Shared/Controls/Input/CheckComboBox/CheckComboBox.cs @@ -170,7 +170,7 @@ public class CheckComboBox : ListBox if (_selectAllItem != null) { _isInternalAction = true; - _selectAllItem.SetCurrentValue(IsSelectedProperty, SelectedItems.Count == Items.Count); + _selectAllItem.SetCurrentValue(IsSelectedProperty, Items.Count > 0 && SelectedItems.Count == Items.Count); _isInternalAction = false; }