In WPF, I\'d like to set the selected indexes of a System.Windows.Controls.ListBox
I best way I\'ve found so far is to remove all the items from the control, insert
You can do this for multiple sections:
ListBoxObject.SelectedItems.Add(ListBoxObject.Items.GetItemAt(i));
Where i is the item index.