Commands
ComboBox has the following commands:
- SelectAllCommand (ICommand): Selects all items from the source.
SelectAll command can be used only when
SelectionMode
isMultiple
. An exception will be thrown, if the command is invoked inSingle
SelectionMode
.
- ClearSelectionCommand (ICommand): Sets the selection to null. If Multiple SelectionMode is used, this command will clear all selected items.
Example
Sample example where SelectAll command is used can be found in the ComboBox How-To section ComboBox with CheckBox article.