36 references to SelectedItems
PresentationFramework (36)
System\Windows\Automation\Peers\DataGridAutomationPeer.cs (3)
401
int numSelected = this.OwningDataGrid.
SelectedItems
.Count;
471
if (this.OwningDataGrid.
SelectedItems
!= null)
473
foreach (object item in this.OwningDataGrid.
SelectedItems
)
System\Windows\Automation\Peers\DataGridItemAutomationPeer.cs (6)
278
return this.OwningDataGrid.
SelectedItems
.Contains(Item);
299
if (this.OwningDataGrid.
SelectedItems
.Contains(item))
307
this.OwningDataGrid.
SelectedItems
.Count > 0)
314
this.OwningDataGrid.
SelectedItems
.Add(item);
328
if (this.OwningDataGrid.
SelectedItems
.Contains(item))
330
this.OwningDataGrid.
SelectedItems
.Remove(item);
System\Windows\Controls\DataGrid.cs (24)
663
_selectedCells.OnColumnsChanged(action, oldDisplayIndex, oldColumn, newDisplayIndex,
SelectedItems
);
1336
return
SelectedItems
.Contains(item) ? Visibility.Visible : Visibility.Collapsed;
1371
return _selectionAnchor != null &&
SelectedItems
.Contains(_selectionAnchor.Value.Item) &&
2144
if (
SelectedItems
.Contains(CollectionView.NewItemPlaceholder))
2631
int numSelected =
SelectedItems
.Count;
2636
if (
SelectedItems
.Contains(currentInfo.Item))
2659
ArrayList itemsToRemove = new ArrayList(
SelectedItems
);
2672
_selectedCells.ClearFullRows(
SelectedItems
);
2673
SelectedItems
.Clear();
3665
bool wasSelected =
SelectedItems
.Contains(currentAddItem);
3858
int itemsSelected =
SelectedItems
.Count;
3860
if (HasNewItemPlaceholder &&
SelectedItems
.Contains(CollectionView.NewItemPlaceholder))
4124
get { return (SelectedItemCollection)
SelectedItems
; }
4241
if (
SelectedItems
.Contains(rowItem))
4244
SelectedItems
.Remove(rowItem);
4471
if (dataGrid.
SelectedItems
.Count > 0)
4994
if (
SelectedItems
.Count > 0)
4996
SelectedItems
.Clear();
5079
if (
SelectedItems
.Count > 0)
5125
if (
SelectedItems
.Contains(item))
5128
SelectedItems
.Remove(item);
5163
SelectedItems
.Contains(cellInfo.Item))
5166
SelectedItems
.Remove(cellInfo.Item);
5174
if (
SelectedItems
.Count > 0)
System\Windows\Controls\Primitives\MultiSelector.cs (3)
52
((SelectedItemCollection)
SelectedItems
).BeginUpdateSelectedItems();
61
((SelectedItemCollection)
SelectedItems
).EndUpdateSelectedItems();
74
return ((SelectedItemCollection)
SelectedItems
).IsUpdatingSelectedItems;