13 writes to Index
PresentationFramework (13)
src\Framework\System\Windows\Controls\ItemsControl.cs (10)
3632
info.
Index
= index;
3665
info.
Index
= index + 1;
3677
info.
Index
= index - 1;
3681
info.
Index
= -1;
3708
info.
Index
= e.NewStartingIndex;
3712
info.
Index
= index + delta;
3725
info.
Index
= -1;
3742
info.
Index
= Items.IndexOf(info.Item);
3784
Index
= index;
3873
Index
= generator.IndexFromContainer(Container);
src\Framework\System\Windows\Controls\Primitives\Selector.cs (3)
2050
key.
Index
= i;
2056
info.
Index
= i;
2205
_selectedItems[0].
Index
= index;
71 references to Index
PresentationFramework (71)
src\Framework\System\Windows\Controls\ComboBox.cs (1)
1114
int index = info.
Index
;
src\Framework\System\Windows\Controls\DataGrid.cs (30)
1798
int rowIndex = info.
Index
;
1806
int rowIndex = info.
Index
;
1817
DataGridRow row = (DataGridRow)ItemContainerGenerator.ContainerFromIndex(info.
Index
);
2645
indexToSelect = currentInfo.
Index
;
2648
int anchorIndex = _selectionAnchor.Value.ItemInfo.
Index
;
3100
int currentIndex = currentCell.ItemInfo.
Index
;
4481
dataGrid._selectedCells.RemoveAllButOneRow(dataGrid.InternalSelectedInfo.
Index
);
4680
int rowIndex = rowInfo.
Index
;
4874
int startIndex = _selectionAnchor.Value.ItemInfo.
Index
;
4875
int endIndex = info.
Index
;
4896
int itemIndex = itemInfo.
Index
;
4918
int currentCellIndex = CurrentCell.ItemInfo.
Index
;
4937
int itemIndex = itemInfo.
Index
;
5011
_selectedCells.AddRegion(_editingRowInfo.
Index
, 0, 1, numColumns);
5068
int startIndex = _selectionAnchor.Value.ItemInfo.
Index
;
5069
int endIndex = cellInfo.ItemInfo.
Index
;
5094
int currentCellIndex = CurrentCell.ItemInfo.
Index
;
5146
bool singleRowOperation = (_editingRowInfo != null && _editingRowInfo.
Index
== cellInfo.ItemInfo.
Index
);
5151
selectedCellsContainsCellInfo = _selectedCells.Contains(_editingRowInfo.
Index
, cellInfoColumnIndex);
5160
_selectedCells.RemoveRegion(_editingRowInfo.
Index
, cellInfoColumnIndex, 1, 1);
5191
_selectedCells.AddRegion(_editingRowInfo.
Index
, cellInfoColumnIndex, 1, 1);
5216
int itemIndex = info.
Index
;
5232
int itemIndex = info.
Index
;
5615
int currentRowIndex = currentInfo.
Index
;
5999
int index = CurrentInfo.
Index
;
6140
int rowIndex = currentInfo.
Index
;
7777
return (info != null) && (info.
Index
!= -1);
7791
if (info.
Index
>= 0)
7794
_selectedCells.AddRegion(info.
Index
, 0, 1, columnCount);
src\Framework\System\Windows\Controls\ItemsControl.cs (29)
308
if (_focusedInfo != null && _focusedInfo.
Index
< 0)
1836
else if ((info = LeaseItemInfo(info, true)).
Index
>= 0)
1852
itemsHost.BringIndexIntoView(info.
Index
);
2553
NavigateToItem(info.Item, info.
Index
, itemNavigateArgs, alwaysAtTopOfViewport);
2704
MakeVisible(info.
Index
, direction, false /*alwaysAtTopOfViewport*/, out container);
3541
if (info.
Index
>= 0)
3543
container = ItemContainerGenerator.ContainerFromIndex(info.
Index
);
3611
int index = info.
Index
;
3662
int index = info.
Index
;
3674
int index = info.
Index
;
3705
int index = info.
Index
;
3736
if (info.
Index
< 0)
3740
if (ensureIndex && info.
Index
< 0)
3793
return new ItemInfo(Item, Container,
Index
);
3843
? (this.
Index
== that.
Index
) // Sentinel => negative indices are significant
3844
: (this.
Index
< 0 || that.
Index
< 0 ||
3845
this.
Index
== that.
Index
) // ~Sentinel => ignore negative indices
3849
(this.
Index
< 0 || that.
Index
< 0 || // provided that indices match
3850
this.
Index
== that.
Index
));
3866
if (Container == null &&
Index
< 0)
3871
if (
Index
< 0 && Container != null)
3876
if (Container == null &&
Index
>= 0)
3878
Container = generator.ContainerFromIndex(
Index
);
3881
if (Container == SentinelContainer &&
Index
>= 0)
src\Framework\System\Windows\Controls\ListBox.cs (3)
258
if (_anchorItem != null && _anchorItem.
Index
< 0)
802
end = AnchorItemInternal.
Index
;
828
int itemIndex = info.
Index
;
src\Framework\System\Windows\Controls\Primitives\Selector.cs (7)
1598
int index = _selectedItems[0].
Index
;
1723
userSelectedItems.RemoveAt(~toRemove[i].
Index
);
1744
&& (_selectedItems.Count == 0 || selectedIndex != _selectedItems[0].
Index
)))
2023
if (info.
Index
< 0)
2029
knownIndices.Add(info.
Index
);
2100
if (info.
Index
< 0)
2201
int index = _selectedItems[0].
Index
;
src\Framework\System\Windows\Controls\VirtualizedCellInfoCollection.cs (1)
1574
rowIndex = cell.ItemInfo.
Index
;