50 references to SelectedItems
PresentationFramework (36)
src\Framework\System\Windows\Automation\Peers\DataGridAutomationPeer.cs (3)
400
int numSelected = this.OwningDataGrid.
SelectedItems
.Count;
476
if (this.OwningDataGrid.
SelectedItems
!= null)
478
foreach (object item in this.OwningDataGrid.
SelectedItems
)
src\Framework\System\Windows\Automation\Peers\DataGridItemAutomationPeer.cs (6)
281
return this.OwningDataGrid.
SelectedItems
.Contains(Item);
302
if (this.OwningDataGrid.
SelectedItems
.Contains(item))
310
this.OwningDataGrid.
SelectedItems
.Count > 0)
317
this.OwningDataGrid.
SelectedItems
.Add(item);
331
if (this.OwningDataGrid.
SelectedItems
.Contains(item))
333
this.OwningDataGrid.
SelectedItems
.Remove(item);
src\Framework\System\Windows\Controls\DataGrid.cs (24)
664
_selectedCells.OnColumnsChanged(action, oldDisplayIndex, oldColumn, newDisplayIndex,
SelectedItems
);
1337
return
SelectedItems
.Contains(item) ? Visibility.Visible : Visibility.Collapsed;
1372
return _selectionAnchor != null &&
SelectedItems
.Contains(_selectionAnchor.Value.Item) &&
2148
if (
SelectedItems
.Contains(CollectionView.NewItemPlaceholder))
2636
int numSelected =
SelectedItems
.Count;
2641
if (
SelectedItems
.Contains(currentInfo.Item))
2664
ArrayList itemsToRemove = new ArrayList(
SelectedItems
);
2677
_selectedCells.ClearFullRows(
SelectedItems
);
2678
SelectedItems
.Clear();
3670
bool wasSelected =
SelectedItems
.Contains(currentAddItem);
3863
int itemsSelected =
SelectedItems
.Count;
3865
if (HasNewItemPlaceholder &&
SelectedItems
.Contains(CollectionView.NewItemPlaceholder))
4129
get { return (SelectedItemCollection)
SelectedItems
; }
4246
if (
SelectedItems
.Contains(rowItem))
4249
SelectedItems
.Remove(rowItem);
4476
if (dataGrid.
SelectedItems
.Count > 0)
4999
if (
SelectedItems
.Count > 0)
5001
SelectedItems
.Clear();
5084
if (
SelectedItems
.Count > 0)
5130
if (
SelectedItems
.Contains(item))
5133
SelectedItems
.Remove(item);
5168
SelectedItems
.Contains(cellInfo.Item))
5171
SelectedItems
.Remove(cellInfo.Item);
5179
if (
SelectedItems
.Count > 0)
src\Framework\System\Windows\Controls\Primitives\MultiSelector.cs (3)
53
((SelectedItemCollection)
SelectedItems
).BeginUpdateSelectedItems();
62
((SelectedItemCollection)
SelectedItems
).EndUpdateSelectedItems();
75
return ((SelectedItemCollection)
SelectedItems
).IsUpdatingSelectedItems;
System.Activities.Presentation (14)
System.Activities.Presentation\System\Activities\Presentation\ContextMenuUtilities.cs (4)
84
if (dataGrid == null || dataGrid.
SelectedItems
== null || dataGrid.
SelectedItems
.Count == 0)
89
if (dataGrid.
SelectedItems
.Count == 1 && dataGrid.
SelectedItems
[0] == CollectionView.NewItemPlaceholder)
System.Activities.Presentation\System\Activities\Presentation\View\DataGridHelper.cs (9)
712
dataGrid.
SelectedItems
.Clear();
716
dataGrid.
SelectedItems
.Add(dataGrid.ItemContainerGenerator.ItemFromContainer(row));
1018
if (dataGrid == null || dataGrid.
SelectedItems
== null || dataGrid.
SelectedItems
.Count != 1)
1023
if (dataGrid.
SelectedItems
[0] == CollectionView.NewItemPlaceholder)
1028
DesignObjectWrapper designObjectWrapper = dataGrid.
SelectedItems
[0] as DesignObjectWrapper;
1119
|| dataGrid.
SelectedItems
== null
1120
|| dataGrid.
SelectedItems
.Count == 0
1135
foreach (object obj in dataGrid.
SelectedItems
)
System.Activities.Presentation\System\Activities\Presentation\View\ImportDesigner.xaml.cs (1)
231
foreach (object item in importsDataGrid.
SelectedItems
)