36 references to SelectedItems
PresentationFramework (36)
System\Windows\Automation\Peers\DataGridAutomationPeer.cs (3)
396int numSelected = this.OwningDataGrid.SelectedItems.Count; 466if (this.OwningDataGrid.SelectedItems != null) 468foreach (object item in this.OwningDataGrid.SelectedItems)
System\Windows\Automation\Peers\DataGridItemAutomationPeer.cs (6)
273return this.OwningDataGrid.SelectedItems.Contains(Item); 294if (this.OwningDataGrid.SelectedItems.Contains(item)) 302this.OwningDataGrid.SelectedItems.Count > 0) 309this.OwningDataGrid.SelectedItems.Add(item); 323if (this.OwningDataGrid.SelectedItems.Contains(item)) 325this.OwningDataGrid.SelectedItems.Remove(item);
System\Windows\Controls\DataGrid.cs (24)
660_selectedCells.OnColumnsChanged(action, oldDisplayIndex, oldColumn, newDisplayIndex, SelectedItems); 1333return SelectedItems.Contains(item) ? Visibility.Visible : Visibility.Collapsed; 1368return _selectionAnchor != null && SelectedItems.Contains(_selectionAnchor.Value.Item) && 2141if (SelectedItems.Contains(CollectionView.NewItemPlaceholder)) 2628int numSelected = SelectedItems.Count; 2633if (SelectedItems.Contains(currentInfo.Item)) 2656ArrayList itemsToRemove = new ArrayList(SelectedItems); 2669_selectedCells.ClearFullRows(SelectedItems); 2670SelectedItems.Clear(); 3662bool wasSelected = SelectedItems.Contains(currentAddItem); 3855int itemsSelected = SelectedItems.Count; 3857if (HasNewItemPlaceholder && SelectedItems.Contains(CollectionView.NewItemPlaceholder)) 4121get { return (SelectedItemCollection)SelectedItems; } 4238if (SelectedItems.Contains(rowItem)) 4241SelectedItems.Remove(rowItem); 4468if (dataGrid.SelectedItems.Count > 0) 4991if (SelectedItems.Count > 0) 4993SelectedItems.Clear(); 5076if (SelectedItems.Count > 0) 5122if (SelectedItems.Contains(item)) 5125SelectedItems.Remove(item); 5160SelectedItems.Contains(cellInfo.Item)) 5163SelectedItems.Remove(cellInfo.Item); 5171if (SelectedItems.Count > 0)
System\Windows\Controls\Primitives\MultiSelector.cs (3)
50((SelectedItemCollection)SelectedItems).BeginUpdateSelectedItems(); 59((SelectedItemCollection)SelectedItems).EndUpdateSelectedItems(); 72return ((SelectedItemCollection)SelectedItems).IsUpdatingSelectedItems;