Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Experts,

In my WPF project i require a multi selectable combobox with checkboxes.

its should be done dynamically binding from the database.

i searched in google, but i haven't find related to my problem.

can you please provide your ideas to build this.

Thnaks
Posted

Because it's WPF, you can put anything you want, anywhere. Just add checkboxes to the template for the contents of your combo box.

You didn't look[^] very hard
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 8-Jan-13 22:28pm    
Agree. Probably my idea about it was a bit overcomplicated... :-)
—SA
There is no such control for WPF in .NET FCL. You will have to create your own custom control to implement such features.

Derive it from the base class System.Windows.Controls.Control:
http://msdn.microsoft.com/en-us/library/system.windows.controls.control.aspx[^].

Another idea: derive it from System.Windows.Controls.Panel, make existing check box control instances its Children and custom rendering to add text and the rest:
http://msdn.microsoft.com/en-us/library/system.windows.controls.panel.aspx[^],
http://msdn.microsoft.com/en-us/library/system.windows.controls.panel.children.aspx[^].

Probably, some other options are possible. [EDIT] Speaking of which: probably the answer by Christian Grauss is a better way to go [END EDIT]

It would not be extremely hard to develop, I would say, but will take close attention and patience.

—SA
 
Share this answer
 
v3

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