Quantcast
Channel: Extended WPF Toolkit™ Community Edition
Viewing all articles
Browse latest Browse all 4964

New Post: CheckListBox - How to uncheck all checked items

$
0
0
I cannot figure out how to clear all checked items in a CheckListBox
I have a long list in my checklistbox and using a button in the GUI I want to clear all checked items but I cannot figure out how to clear.

I would have thought that I could iterate over the Items property but the type of the items are only string.

Any input anyone ?

My xaml :
<xctk:CheckListBox
      Name="TaskStatusFilter_CheckListBox"
      ItemsSource="{Binding TaskStatuses}"
  SelectedItemsOverride="{Binding SelectedTaskStatuses}" 
  HorizontalAlignment="Left" Height="100" 
  Margin="0,0,0,-35" 
 VerticalAlignment="Top" Width="150"/>
Both TaskStatuses and SelectedTaskStatuses are ObservableCollection<String>

Viewing all articles
Browse latest Browse all 4964

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>