13 writes to Index
PresentationFramework (13)
System\Windows\Controls\ItemsControl.cs (10)
3661
info.
Index
= index;
3694
info.
Index
= index + 1;
3706
info.
Index
= index - 1;
3710
info.
Index
= -1;
3737
info.
Index
= e.NewStartingIndex;
3741
info.
Index
= index + delta;
3754
info.
Index
= -1;
3771
info.
Index
= Items.IndexOf(info.Item);
3810
Index
= index;
3899
Index
= generator.IndexFromContainer(Container);
System\Windows\Controls\Primitives\Selector.cs (3)
1994
key.
Index
= i;
2000
info.
Index
= i;
2149
_selectedItems[0].
Index
= index;
71 references to Index
PresentationFramework (71)
System\Windows\Controls\ComboBox.cs (1)
1098
int index = info.
Index
;
System\Windows\Controls\DataGrid.cs (30)
1784
int rowIndex = info.
Index
;
1792
int rowIndex = info.
Index
;
1803
DataGridRow row = (DataGridRow)ItemContainerGenerator.ContainerFromIndex(info.
Index
);
2620
indexToSelect = currentInfo.
Index
;
2623
int anchorIndex = _selectionAnchor.Value.ItemInfo.
Index
;
3072
int currentIndex = currentCell.ItemInfo.
Index
;
4444
dataGrid._selectedCells.RemoveAllButOneRow(dataGrid.InternalSelectedInfo.
Index
);
4637
int rowIndex = rowInfo.
Index
;
4831
int startIndex = _selectionAnchor.Value.ItemInfo.
Index
;
4832
int endIndex = info.
Index
;
4853
int itemIndex = itemInfo.
Index
;
4875
int currentCellIndex = CurrentCell.ItemInfo.
Index
;
4894
int itemIndex = itemInfo.
Index
;
4965
_selectedCells.AddRegion(_editingRowInfo.
Index
, 0, 1, numColumns);
5022
int startIndex = _selectionAnchor.Value.ItemInfo.
Index
;
5023
int endIndex = cellInfo.ItemInfo.
Index
;
5048
int currentCellIndex = CurrentCell.ItemInfo.
Index
;
5100
bool singleRowOperation = (_editingRowInfo != null && _editingRowInfo.
Index
== cellInfo.ItemInfo.
Index
);
5105
selectedCellsContainsCellInfo = _selectedCells.Contains(_editingRowInfo.
Index
, cellInfoColumnIndex);
5114
_selectedCells.RemoveRegion(_editingRowInfo.
Index
, cellInfoColumnIndex, 1, 1);
5145
_selectedCells.AddRegion(_editingRowInfo.
Index
, cellInfoColumnIndex, 1, 1);
5170
int itemIndex = info.
Index
;
5186
int itemIndex = info.
Index
;
5569
int currentRowIndex = currentInfo.
Index
;
5953
int index = CurrentInfo.
Index
;
6091
int rowIndex = currentInfo.
Index
;
7728
return (info != null) && (info.
Index
!= -1);
7742
if (info.
Index
>= 0)
7745
_selectedCells.AddRegion(info.
Index
, 0, 1, columnCount);
System\Windows\Controls\ItemsControl.cs (29)
297
if (_focusedInfo != null && _focusedInfo.
Index
< 0)
1797
else if ((info = LeaseItemInfo(info, true)).
Index
>= 0)
1811
itemsHost?.BringIndexIntoView(info.
Index
);
2511
NavigateToItem(info.Item, info.
Index
, itemNavigateArgs, alwaysAtTopOfViewport);
2662
MakeVisible(info.
Index
, direction, false /*alwaysAtTopOfViewport*/, out container);
3571
if (info.
Index
>= 0)
3573
container = ItemContainerGenerator.ContainerFromIndex(info.
Index
);
3641
int index = info.
Index
;
3691
int index = info.
Index
;
3703
int index = info.
Index
;
3734
int index = info.
Index
;
3765
if (info.
Index
< 0)
3769
if (ensureIndex && info.
Index
< 0)
3819
return new ItemInfo(Item, Container,
Index
);
3869
? (this.
Index
== that.
Index
) // Sentinel => negative indices are significant
3870
: (this.
Index
< 0 || that.
Index
< 0 ||
3871
this.
Index
== that.
Index
) // ~Sentinel => ignore negative indices
3875
(this.
Index
< 0 || that.
Index
< 0 || // provided that indices match
3876
this.
Index
== that.
Index
));
3892
if (Container == null &&
Index
< 0)
3897
if (
Index
< 0 && Container != null)
3902
if (Container == null &&
Index
>= 0)
3904
Container = generator.ContainerFromIndex(
Index
);
3907
if (Container == SentinelContainer &&
Index
>= 0)
System\Windows\Controls\ListBox.cs (3)
254
if (_anchorItem != null && _anchorItem.
Index
< 0)
842
end = AnchorItemInternal.
Index
;
867
int itemIndex = info.
Index
;
System\Windows\Controls\Primitives\Selector.cs (7)
1566
int index = _selectedItems[0].
Index
;
1691
userSelectedItems.RemoveAt(~toRemove[i].
Index
);
1712
&& (_selectedItems.Count == 0 || selectedIndex != _selectedItems[0].
Index
)))
1967
if (info.
Index
< 0)
1973
knownIndices.Add(info.
Index
);
2044
if (info.
Index
< 0)
2145
int index = _selectedItems[0].
Index
;
System\Windows\Controls\VirtualizedCellInfoCollection.cs (1)
1567
rowIndex = cell.ItemInfo.
Index
;