I am new to WPF, I am looking for a dropdown with checkbox to select multiple values. The source to the drop down would be from a list (list).
Asked
Active
Viewed 9,637 times
2 Answers
6
Use WPF Extended Tookit. It may helps you
Here is the link: WPF Toolkit CheckComboBox
Usage
<xctk:CheckComboBox x:Name="_combo"
HorizontalAlignment="Center"
VerticalAlignment="Center"
DisplayMemberPath="Color"
ValueMemberPath="Level"
SelectedValue="{Binding SelectedValue}"
SelectedItemsOverride="{Binding SelectedItems}" />

SomeBody
- 7,515
- 2
- 17
- 33

Anant Dabhi
- 10,864
- 3
- 31
- 49
-
-
1I tried this as per the instruction, But option "SelectedItems" not available. – Mohamed Navas Feb 19 '18 at 07:04
0
SelectedItems is read only, to get selected items IList.
<xctk:CheckComboBox x:Name="_combo"
HorizontalAlignment="Center"
VerticalAlignment="Center"
DisplayMemberPath="Color"
ValueMemberPath="Level"
SelectedValue="{Binding SelectedValue}"
SelectedItemsOverride="{Binding SelectedItems}"
...but its tricky. SelectedItemsOverride should be ObservableCollection with get; set; and base on ItemSource.

XavrasX
- 41
- 2