wpftoolkit
wpftoolkit copied to clipboard
CheckListBox. When I check/uncheck <Select all> the Command don't execute
Hi!
When I check/uncheck <Select all> the Command don't execute!!!
I think is not correct, this is error, because each Item is checked/unchecked. The Command must be execute.
Thanks.
Hello which command are you talking about ? Is it suppose to be when you check the "Select All" checkBox or when you check the last CheckBox and all the other ones are checked ?
<xctk:CheckListBox IsSelectAllActive="True"> <ListBoxItem Content="AAA" /> <ListBoxItem Content="BBB" /> <ListBoxItem Content="CCC" /> </xctk:CheckListBox>
I am seeing the same issue with CheckComboBox. A command (implementing ICommand) bound to the Command property is not invoked when check/uncheck the Select All checkbox. ItemSelectionChanged is still raised for Select All, and the command is invoked when individual checkboxes are clicked (as expected).
This issue does not occur with version 3.8.2. I am guessing some change added in v4.0.0 affected this behavior. I haven't looked into deeply but could the following change affect it?

Hi, Try to go in file Xceed.Wpf.Toolkit/Primitives/SelectAllSelector.cs, in method SelectAll(), and add the following in the foreach: if( this.Command != null ) { this.Command.Execute( item ); }
You can do the same in the UnSelectAll() method.
This will be fixed in v4.6.
Thank you
I confirmed the suggested change fixed the issue. Thank you! May I ask when the next version will be released?
Hi,
There is no release date planned yet, but I would bet for a few months. Thank you