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.
Sample:
CheckedListBox_SamplePlease let us know if the sample helps or in case of any other query.
Regards,
Muthukumar A