13 writes to Index
PresentationFramework (13)
System\Windows\Controls\ItemsControl.cs (10)
3660
info.
Index
= index;
3693
info.
Index
= index + 1;
3705
info.
Index
= index - 1;
3709
info.
Index
= -1;
3736
info.
Index
= e.NewStartingIndex;
3740
info.
Index
= index + delta;
3753
info.
Index
= -1;
3770
info.
Index
= Items.IndexOf(info.Item);
3809
Index
= index;
3898
Index
= generator.IndexFromContainer(Container);
System\Windows\Controls\Primitives\Selector.cs (3)
1993
key.
Index
= i;
1999
info.
Index
= i;
2148
_selectedItems[0].
Index
= index;
71 references to Index
PresentationFramework (71)
System\Windows\Controls\ComboBox.cs (1)
1097
int index = info.
Index
;
System\Windows\Controls\DataGrid.cs (30)
1783
int rowIndex = info.
Index
;
1791
int rowIndex = info.
Index
;
1802
DataGridRow row = (DataGridRow)ItemContainerGenerator.ContainerFromIndex(info.
Index
);
2619
indexToSelect = currentInfo.
Index
;
2622
int anchorIndex = _selectionAnchor.Value.ItemInfo.
Index
;
3071
int currentIndex = currentCell.ItemInfo.
Index
;
4443
dataGrid._selectedCells.RemoveAllButOneRow(dataGrid.InternalSelectedInfo.
Index
);
4636
int rowIndex = rowInfo.
Index
;
4830
int startIndex = _selectionAnchor.Value.ItemInfo.
Index
;
4831
int endIndex = info.
Index
;
4852
int itemIndex = itemInfo.
Index
;
4874
int currentCellIndex = CurrentCell.ItemInfo.
Index
;
4893
int itemIndex = itemInfo.
Index
;
4964
_selectedCells.AddRegion(_editingRowInfo.
Index
, 0, 1, numColumns);
5021
int startIndex = _selectionAnchor.Value.ItemInfo.
Index
;
5022
int endIndex = cellInfo.ItemInfo.
Index
;
5047
int currentCellIndex = CurrentCell.ItemInfo.
Index
;
5099
bool singleRowOperation = (_editingRowInfo != null && _editingRowInfo.
Index
== cellInfo.ItemInfo.
Index
);
5104
selectedCellsContainsCellInfo = _selectedCells.Contains(_editingRowInfo.
Index
, cellInfoColumnIndex);
5113
_selectedCells.RemoveRegion(_editingRowInfo.
Index
, cellInfoColumnIndex, 1, 1);
5144
_selectedCells.AddRegion(_editingRowInfo.
Index
, cellInfoColumnIndex, 1, 1);
5169
int itemIndex = info.
Index
;
5185
int itemIndex = info.
Index
;
5568
int currentRowIndex = currentInfo.
Index
;
5952
int index = CurrentInfo.
Index
;
6090
int rowIndex = currentInfo.
Index
;
7727
return (info != null) && (info.
Index
!= -1);
7741
if (info.
Index
>= 0)
7744
_selectedCells.AddRegion(info.
Index
, 0, 1, columnCount);
System\Windows\Controls\ItemsControl.cs (29)
296
if (_focusedInfo != null && _focusedInfo.
Index
< 0)
1796
else if ((info = LeaseItemInfo(info, true)).
Index
>= 0)
1810
itemsHost?.BringIndexIntoView(info.
Index
);
2510
NavigateToItem(info.Item, info.
Index
, itemNavigateArgs, alwaysAtTopOfViewport);
2661
MakeVisible(info.
Index
, direction, false /*alwaysAtTopOfViewport*/, out container);
3570
if (info.
Index
>= 0)
3572
container = ItemContainerGenerator.ContainerFromIndex(info.
Index
);
3640
int index = info.
Index
;
3690
int index = info.
Index
;
3702
int index = info.
Index
;
3733
int index = info.
Index
;
3764
if (info.
Index
< 0)
3768
if (ensureIndex && info.
Index
< 0)
3818
return new ItemInfo(Item, Container,
Index
);
3868
? (this.
Index
== that.
Index
) // Sentinel => negative indices are significant
3869
: (this.
Index
< 0 || that.
Index
< 0 ||
3870
this.
Index
== that.
Index
) // ~Sentinel => ignore negative indices
3874
(this.
Index
< 0 || that.
Index
< 0 || // provided that indices match
3875
this.
Index
== that.
Index
));
3891
if (Container == null &&
Index
< 0)
3896
if (
Index
< 0 && Container != null)
3901
if (Container == null &&
Index
>= 0)
3903
Container = generator.ContainerFromIndex(
Index
);
3906
if (Container == SentinelContainer &&
Index
>= 0)
System\Windows\Controls\ListBox.cs (3)
253
if (_anchorItem != null && _anchorItem.
Index
< 0)
841
end = AnchorItemInternal.
Index
;
866
int itemIndex = info.
Index
;
System\Windows\Controls\Primitives\Selector.cs (7)
1565
int index = _selectedItems[0].
Index
;
1690
userSelectedItems.RemoveAt(~toRemove[i].
Index
);
1711
&& (_selectedItems.Count == 0 || selectedIndex != _selectedItems[0].
Index
)))
1966
if (info.
Index
< 0)
1972
knownIndices.Add(info.
Index
);
2043
if (info.
Index
< 0)
2144
int index = _selectedItems[0].
Index
;
System\Windows\Controls\VirtualizedCellInfoCollection.cs (1)
1566
rowIndex = cell.ItemInfo.
Index
;