I am facing some troubles creating a Silverlight custom control – a combobox with checkboxes.
Do we have something out of the box to do this?
I am facing some troubles creating a Silverlight custom control – a combobox with
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
(sorry for my bad english)
If you want to display checkboxes as items of a comboBox, a simple DataTemplate shoud work:
Now on your code behind create an ObservableCollection<CheckItem> ChekItem is a basic class:
and associate it to your comboBox ItemsSource.
If you want to know what items are checked, is simple: