2

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).

Ben Hare
  • 4,365
  • 5
  • 27
  • 44
user1721890
  • 21
  • 1
  • 3
  • Duplicate of http://stackoverflow.com/questions/25157744/multi-select-combobox-with-checkbox-generic-control-in-wpf – bit Apr 09 '15 at 04:06

2 Answers2

6

Use WPF Extended Tookit. It may helps you
enter image description here

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
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