Click here to Skip to main content
14,639,056 members
Rate this:
Please Sign up or sign in to vote.
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.

Rate this:
Please Sign up or sign in to vote.

Solution 2

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
Agree. Probably my idea about it was a bit overcomplicated... :-)
Rate this:
Please Sign up or sign in to vote.

Solution 1

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:[^].

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:[^],[^].

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.


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

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100