Click here to Skip to main content
15,887,350 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to implement Multiple selection with search feature combo-box in Window presentation foundation(WPF) like below link.
<a href="http://www.igniteui.com/combo/selection-and-checkboxes">Selection and Checkboxes Sample - Selection and Checkboxes with Combo Box Control - Ignite UI™</a>[<a href="http://www.igniteui.com/combo/selection-and-checkboxes" target="_blank" title="New Window">^</a>]
Any suggestion will be appreciated.. Thanks..
Posted

1 solution

Instead of multi-selection combo box, I would strongly recommend to create a combo box with check box elements. This way, check states instead of selection provides better visual feedback, reduces accidental mistakes, and so on. It would be hard, for example, to implement "nothing selected" state and then see the difference between highlighting and selection, and so on. Multi-selection list box or combo box style is not quite consistent with customary UI styles.

It's easy to implement from scratch in WPF, but see, for example, C# Corner: Multi Select ComboBox in WPF.

If you still want multiple selection as it is, you could use ListBox instead of ComboBox which you can combined with TextBox in your own combined control (UserControl or custom control). If you wanted this alternative, you could use ListBox.SelectionMode:
ListBox.SelectionMode Property (System.Windows.Controls)[^],
SelectionMode Enumeration (System.Windows.Controls)[^].

But I still would strongly recommend to prefer check boxes in the list elements.

Happy New Year!

—SA
 
Share this answer
 
v3
Comments
bsstudent 1-Jan-16 1:57am    
Above example doesn't have search feature.I need checkboxes with search because my datalist is long.
Sergey Alexandrovich Kryukov 1-Jan-16 2:41am    
Well, do implement the search feature. If you need help, ask another question.

Didn't I answered you original question. Are you going to accept it formally?

—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900