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