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 set multiple items as selected by using the SelectedItems collection. This isn't by index, but by what you have bound:
foreach (var boundObject in objectsBoundToListBox) { ListBox.SelectedItems.Add(boundObject); }