13 writes to Index
PresentationFramework (13)
System\Windows\Controls\ItemsControl.cs (10)
3691
info.
Index
= index;
3724
info.
Index
= index + 1;
3736
info.
Index
= index - 1;
3740
info.
Index
= -1;
3767
info.
Index
= e.NewStartingIndex;
3771
info.
Index
= index + delta;
3784
info.
Index
= -1;
3801
info.
Index
= Items.IndexOf(info.Item);
3843
Index
= index;
3932
Index
= generator.IndexFromContainer(Container);
System\Windows\Controls\Primitives\Selector.cs (3)
1996
key.
Index
= i;
2002
info.
Index
= i;
2151
_selectedItems[0].
Index
= index;
71 references to Index
PresentationFramework (71)
System\Windows\Controls\ComboBox.cs (1)
1102
int index = info.
Index
;
System\Windows\Controls\DataGrid.cs (30)
1791
int rowIndex = info.
Index
;
1799
int rowIndex = info.
Index
;
1810
DataGridRow row = (DataGridRow)ItemContainerGenerator.ContainerFromIndex(info.
Index
);
2637
indexToSelect = currentInfo.
Index
;
2640
int anchorIndex = _selectionAnchor.Value.ItemInfo.
Index
;
3092
int currentIndex = currentCell.ItemInfo.
Index
;
4473
dataGrid._selectedCells.RemoveAllButOneRow(dataGrid.InternalSelectedInfo.
Index
);
4672
int rowIndex = rowInfo.
Index
;
4866
int startIndex = _selectionAnchor.Value.ItemInfo.
Index
;
4867
int endIndex = info.
Index
;
4888
int itemIndex = itemInfo.
Index
;
4910
int currentCellIndex = CurrentCell.ItemInfo.
Index
;
4929
int itemIndex = itemInfo.
Index
;
5003
_selectedCells.AddRegion(_editingRowInfo.
Index
, 0, 1, numColumns);
5060
int startIndex = _selectionAnchor.Value.ItemInfo.
Index
;
5061
int endIndex = cellInfo.ItemInfo.
Index
;
5086
int currentCellIndex = CurrentCell.ItemInfo.
Index
;
5138
bool singleRowOperation = (_editingRowInfo != null && _editingRowInfo.
Index
== cellInfo.ItemInfo.
Index
);
5143
selectedCellsContainsCellInfo = _selectedCells.Contains(_editingRowInfo.
Index
, cellInfoColumnIndex);
5152
_selectedCells.RemoveRegion(_editingRowInfo.
Index
, cellInfoColumnIndex, 1, 1);
5183
_selectedCells.AddRegion(_editingRowInfo.
Index
, cellInfoColumnIndex, 1, 1);
5208
int itemIndex = info.
Index
;
5224
int itemIndex = info.
Index
;
5607
int currentRowIndex = currentInfo.
Index
;
5991
int index = CurrentInfo.
Index
;
6132
int rowIndex = currentInfo.
Index
;
7771
return (info != null) && (info.
Index
!= -1);
7785
if (info.
Index
>= 0)
7788
_selectedCells.AddRegion(info.
Index
, 0, 1, columnCount);
System\Windows\Controls\ItemsControl.cs (29)
297
if (_focusedInfo != null && _focusedInfo.
Index
< 0)
1824
else if ((info = LeaseItemInfo(info, true)).
Index
>= 0)
1840
itemsHost.BringIndexIntoView(info.
Index
);
2541
NavigateToItem(info.Item, info.
Index
, itemNavigateArgs, alwaysAtTopOfViewport);
2692
MakeVisible(info.
Index
, direction, false /*alwaysAtTopOfViewport*/, out container);
3601
if (info.
Index
>= 0)
3603
container = ItemContainerGenerator.ContainerFromIndex(info.
Index
);
3671
int index = info.
Index
;
3721
int index = info.
Index
;
3733
int index = info.
Index
;
3764
int index = info.
Index
;
3795
if (info.
Index
< 0)
3799
if (ensureIndex && info.
Index
< 0)
3852
return new ItemInfo(Item, Container,
Index
);
3902
? (this.
Index
== that.
Index
) // Sentinel => negative indices are significant
3903
: (this.
Index
< 0 || that.
Index
< 0 ||
3904
this.
Index
== that.
Index
) // ~Sentinel => ignore negative indices
3908
(this.
Index
< 0 || that.
Index
< 0 || // provided that indices match
3909
this.
Index
== that.
Index
));
3925
if (Container == null &&
Index
< 0)
3930
if (
Index
< 0 && Container != null)
3935
if (Container == null &&
Index
>= 0)
3937
Container = generator.ContainerFromIndex(
Index
);
3940
if (Container == SentinelContainer &&
Index
>= 0)
System\Windows\Controls\ListBox.cs (3)
254
if (_anchorItem != null && _anchorItem.
Index
< 0)
841
end = AnchorItemInternal.
Index
;
866
int itemIndex = info.
Index
;
System\Windows\Controls\Primitives\Selector.cs (7)
1569
int index = _selectedItems[0].
Index
;
1694
userSelectedItems.RemoveAt(~toRemove[i].
Index
);
1715
&& (_selectedItems.Count == 0 || selectedIndex != _selectedItems[0].
Index
)))
1969
if (info.
Index
< 0)
1975
knownIndices.Add(info.
Index
);
2046
if (info.
Index
< 0)
2147
int index = _selectedItems[0].
Index
;
System\Windows\Controls\VirtualizedCellInfoCollection.cs (1)
1567
rowIndex = cell.ItemInfo.
Index
;