Menu

#46 Checkbox

v1.0 (example)
open
nobody
None
5
2014-06-10
2014-06-10
C Perkins
No

In version 1.7.0.0, if a NodeCheckBox.ThreeState property is set to true, but the bound data member is only bool, the checkbox can be checked, but never unchecked. Although an apparent conflict exists with the ThreeState and bool values, I expect that the checkbox should at least toggle between True and False, even if Indeterminate is not a valid value.

This can be fixed in NodeCheckBox.cs in the SetCheckState method:
- SetValue(node, value != CheckState.Unchecked);
+ SetValue(node, value == CheckState.Checked);

Discussion


Log in to post a comment.