I tried this c# code , But this is work only with checkedlist in c# and not same in wpf for (int i = 0; i < ListBox.Items.CheckedItems.Count; ++i) { string ItemValue =ListBox.CheckedItems[i]ToString(); }
For (int i = 0; i < ListBox.Items.SelectedItems.Count; ++i) { string ItemValue =ListBox.SelectedItems[i]ToString(); }
foreach (CheckBox item in ListBox.Items) { if (item.IsChecked == true) { string ItemValue =item.Content.ToString() ; }}
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)