Quantcast
Channel: wpftoolkit Discussions Rss Feed
Viewing all articles
Browse latest Browse all 2157

New Post: Checked List Box

$
0
0
Hi DeepuJo,

1) Checking items by Index
In the CheckListBox, SelectedItems are added by items. So if you have the Index, you can do something like :
 _checkListBox.ItemsSource = new List<string>() { "AA", "BB", "CC", "DD" };
_checkListBox.SelectedValue = "BB";
or
_checkListBox.SelectedItems.Add( _checkListBox.Items[ 1 ] );
or
_checkListBox.SelectedItemsOverride = new List<string>() { _checkListBox.Items[ 1 ] as string };
2) Check visible right away
When I check an item from the CheckListBox either with the mouse or in code-behind, The item is checked right away. Can you provide a sample if you still have this bug ?

Viewing all articles
Browse latest Browse all 2157

Trending Articles



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