MultiSelection Support in WPF ComboBox (ComboBoxAdv)
If we want to select more than one item in the ComboBoxAdv, AllowMultiSelect property will be helpful to do this. It allows you to select multiple items in the drop down list. The selected items will be displayed in ascending order as shown in the drop down list. When AllowMultiSelect property is true, the SelectedItems property exposes the items that are selected in the drop down list.
|Property||Description||Type||Data Type||Reference links|
|AllowMultiSelect||Multiple items can be selected.||Dependency Property||Boolean||NA|
|SelectedItems||It contains the selected items value||Dependency Property||ObservableCollection<object>||NA|
Adding multiple selections to an application
AllowMultiSelect property can be added directly to an application using the following code snippet.
ComboBoxAdv comboBox = new ComboBoxAdv(); comboBox.AllowMultiSelect = true;