We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Get the checked items of a CheckListBox

Thread ID:





120688 Oct 4,2015 01:02 PM UTC Feb 19,2018 11:17 AM UTC WPF 7
Tags: PDF
Fabio Henrique Baptista
Asked On October 4, 2015 01:02 PM UTC


How can I get the items that are checked in my CheckListBox, I tried SeletecItem property, connected with a List <>, but had no success.

ps. I'm using MVVM.


Muthukumar A [Syncfusion]
Replied On October 5, 2015 07:29 AM UTC

Hi Fabio,

Thanks for contacting Syncfusion Support.

Since CheckListBox has been inherited from MultiSelector, its SelectedItems Property is Hidden and ReadOnly. So using the SelectedItems in MVVM is not possible.
But we can achieve your requirement by two ways,

First way:
Include bool property, say "IsSelected" in Model level and bind this property with IsSelected of CheckListBoxItem. This can be done by modifying the ItemsContainerStyle of Control. And then while the property changes, write your codes to preserve SelectedItems.

Second Way: Including either AttachedProperty or Behavior
Here we need to provide new attached property to hold the selected items of control. Unlike previous way, this will support full XAMl binding in MVVM.

We have created a demo sample that tries to explain above methods. You can download the sample from the below location.


Please let us know if the sample helps or in case of any other query.

Muthukumar A

Fabio Henrique Baptista
Replied On October 5, 2015 10:51 PM UTC


Thank you, it worked perfectly.


Muthukumar A [Syncfusion]
Replied On October 6, 2015 04:47 AM UTC

Hi Fabio,

We are glad to hear that your requirement is fulfilled.

Please let us know if you need any further assistance on this.

Muthukumar A

Andy Pybus
Replied On June 11, 2017 07:17 PM UTC

Dear Muthukumar,

I want to use the CheckListBox control in a simple dialog window.

I am not using MVVM.

I require that only a single item can be selected.

Can you recommend a way to do this?


Andy Pybus

Keerthana Jegannathan [Syncfusion]
Replied On June 12, 2017 08:49 AM UTC

Hi Andy, 
Thanks for your update. 
We suspect that your requirement is to check only one item from CheckListBox control at a time, if so we have prepared a workaround sample to meet your requirement in which we have changed the “IsSelected” property of the previously checked item to false once new item has been checked in SelectionChanged event of the CheckListBox control and it can be downloaded from the below location. 
Keerthana J 

Replied On February 16, 2018 06:15 AM UTC

i need xamarin pdf

Sowmiya Loganathan [Syncfusion]
Replied On February 19, 2018 11:17 AM UTC

Hi Fabio, 

Could you please provide more information about what feature you need from Xamarin PDF. It would be helpful for us to provide a precise solution. 

For more information about PDF, please refer the below UG documentation link: 
Please refer the below PDF Feature Tool link for your reference: 

Please let us know if you need further assistance on this. 

Sowmiya L 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon