- Timestamp:
- 05/11/10 18:16:41 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Core.Views/3.3/ItemArrayView.cs
r3764 r3775 84 84 protected override void OnContentChanged() { 85 85 base.OnContentChanged(); 86 87 int selectedIndex = -1; 88 if (itemsListView.SelectedItems.Count == 1) selectedIndex = itemsListView.SelectedIndices[0]; 89 86 90 while (itemsListView.Items.Count > 0) RemoveListViewItem(itemsListView.Items[0]); 87 91 viewHost.Content = null; … … 90 94 foreach (T item in Content) 91 95 AddListViewItem(CreateListViewItem(item)); 96 if ((selectedIndex != -1) && (selectedIndex < itemsListView.Items.Count)) 97 itemsListView.Items[selectedIndex].Selected = true; 92 98 } 93 99 SetEnabledStateOfControls();
Note: See TracChangeset
for help on using the changeset viewer.