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)
1780
int rowIndex = info.
Index
;
1788
int rowIndex = info.
Index
;
1799
DataGridRow row = (DataGridRow)ItemContainerGenerator.ContainerFromIndex(info.
Index
);
2613
indexToSelect = currentInfo.
Index
;
2616
int anchorIndex = _selectionAnchor.Value.ItemInfo.
Index
;
3065
int currentIndex = currentCell.ItemInfo.
Index
;
4437
dataGrid._selectedCells.RemoveAllButOneRow(dataGrid.InternalSelectedInfo.
Index
);
4630
int rowIndex = rowInfo.
Index
;
4824
int startIndex = _selectionAnchor.Value.ItemInfo.
Index
;
4825
int endIndex = info.
Index
;
4846
int itemIndex = itemInfo.
Index
;
4868
int currentCellIndex = CurrentCell.ItemInfo.
Index
;
4887
int itemIndex = itemInfo.
Index
;
4958
_selectedCells.AddRegion(_editingRowInfo.
Index
, 0, 1, numColumns);
5015
int startIndex = _selectionAnchor.Value.ItemInfo.
Index
;
5016
int endIndex = cellInfo.ItemInfo.
Index
;
5041
int currentCellIndex = CurrentCell.ItemInfo.
Index
;
5093
bool singleRowOperation = (_editingRowInfo != null && _editingRowInfo.
Index
== cellInfo.ItemInfo.
Index
);
5098
selectedCellsContainsCellInfo = _selectedCells.Contains(_editingRowInfo.
Index
, cellInfoColumnIndex);
5107
_selectedCells.RemoveRegion(_editingRowInfo.
Index
, cellInfoColumnIndex, 1, 1);
5138
_selectedCells.AddRegion(_editingRowInfo.
Index
, cellInfoColumnIndex, 1, 1);
5163
int itemIndex = info.
Index
;
5179
int itemIndex = info.
Index
;
5562
int currentRowIndex = currentInfo.
Index
;
5946
int index = CurrentInfo.
Index
;
6084
int rowIndex = currentInfo.
Index
;
7721
return (info != null) && (info.
Index
!= -1);
7735
if (info.
Index
>= 0)
7738
_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
;