13 writes to Index
PresentationFramework (13)
System\Windows\Controls\ItemsControl.cs (10)
3700
info.
Index
= index;
3733
info.
Index
= index + 1;
3745
info.
Index
= index - 1;
3749
info.
Index
= -1;
3776
info.
Index
= e.NewStartingIndex;
3780
info.
Index
= index + delta;
3793
info.
Index
= -1;
3810
info.
Index
= Items.IndexOf(info.Item);
3852
Index
= index;
3941
Index
= generator.IndexFromContainer(Container);
System\Windows\Controls\Primitives\Selector.cs (3)
2005
key.
Index
= i;
2011
info.
Index
= i;
2160
_selectedItems[0].
Index
= index;
71 references to Index
PresentationFramework (71)
System\Windows\Controls\ComboBox.cs (1)
1112
int index = info.
Index
;
System\Windows\Controls\DataGrid.cs (30)
1794
int rowIndex = info.
Index
;
1802
int rowIndex = info.
Index
;
1813
DataGridRow row = (DataGridRow)ItemContainerGenerator.ContainerFromIndex(info.
Index
);
2640
indexToSelect = currentInfo.
Index
;
2643
int anchorIndex = _selectionAnchor.Value.ItemInfo.
Index
;
3095
int currentIndex = currentCell.ItemInfo.
Index
;
4476
dataGrid._selectedCells.RemoveAllButOneRow(dataGrid.InternalSelectedInfo.
Index
);
4675
int rowIndex = rowInfo.
Index
;
4869
int startIndex = _selectionAnchor.Value.ItemInfo.
Index
;
4870
int endIndex = info.
Index
;
4891
int itemIndex = itemInfo.
Index
;
4913
int currentCellIndex = CurrentCell.ItemInfo.
Index
;
4932
int itemIndex = itemInfo.
Index
;
5006
_selectedCells.AddRegion(_editingRowInfo.
Index
, 0, 1, numColumns);
5063
int startIndex = _selectionAnchor.Value.ItemInfo.
Index
;
5064
int endIndex = cellInfo.ItemInfo.
Index
;
5089
int currentCellIndex = CurrentCell.ItemInfo.
Index
;
5141
bool singleRowOperation = (_editingRowInfo != null && _editingRowInfo.
Index
== cellInfo.ItemInfo.
Index
);
5146
selectedCellsContainsCellInfo = _selectedCells.Contains(_editingRowInfo.
Index
, cellInfoColumnIndex);
5155
_selectedCells.RemoveRegion(_editingRowInfo.
Index
, cellInfoColumnIndex, 1, 1);
5186
_selectedCells.AddRegion(_editingRowInfo.
Index
, cellInfoColumnIndex, 1, 1);
5211
int itemIndex = info.
Index
;
5227
int itemIndex = info.
Index
;
5610
int currentRowIndex = currentInfo.
Index
;
5994
int index = CurrentInfo.
Index
;
6135
int rowIndex = currentInfo.
Index
;
7774
return (info != null) && (info.
Index
!= -1);
7788
if (info.
Index
>= 0)
7791
_selectedCells.AddRegion(info.
Index
, 0, 1, columnCount);
System\Windows\Controls\ItemsControl.cs (29)
306
if (_focusedInfo != null && _focusedInfo.
Index
< 0)
1833
else if ((info = LeaseItemInfo(info, true)).
Index
>= 0)
1849
itemsHost.BringIndexIntoView(info.
Index
);
2550
NavigateToItem(info.Item, info.
Index
, itemNavigateArgs, alwaysAtTopOfViewport);
2701
MakeVisible(info.
Index
, direction, false /*alwaysAtTopOfViewport*/, out container);
3610
if (info.
Index
>= 0)
3612
container = ItemContainerGenerator.ContainerFromIndex(info.
Index
);
3680
int index = info.
Index
;
3730
int index = info.
Index
;
3742
int index = info.
Index
;
3773
int index = info.
Index
;
3804
if (info.
Index
< 0)
3808
if (ensureIndex && info.
Index
< 0)
3861
return new ItemInfo(Item, Container,
Index
);
3911
? (this.
Index
== that.
Index
) // Sentinel => negative indices are significant
3912
: (this.
Index
< 0 || that.
Index
< 0 ||
3913
this.
Index
== that.
Index
) // ~Sentinel => ignore negative indices
3917
(this.
Index
< 0 || that.
Index
< 0 || // provided that indices match
3918
this.
Index
== that.
Index
));
3934
if (Container == null &&
Index
< 0)
3939
if (
Index
< 0 && Container != null)
3944
if (Container == null &&
Index
>= 0)
3946
Container = generator.ContainerFromIndex(
Index
);
3949
if (Container == SentinelContainer &&
Index
>= 0)
System\Windows\Controls\ListBox.cs (3)
260
if (_anchorItem != null && _anchorItem.
Index
< 0)
847
end = AnchorItemInternal.
Index
;
872
int itemIndex = info.
Index
;
System\Windows\Controls\Primitives\Selector.cs (7)
1578
int index = _selectedItems[0].
Index
;
1703
userSelectedItems.RemoveAt(~toRemove[i].
Index
);
1724
&& (_selectedItems.Count == 0 || selectedIndex != _selectedItems[0].
Index
)))
1978
if (info.
Index
< 0)
1984
knownIndices.Add(info.
Index
);
2055
if (info.
Index
< 0)
2156
int index = _selectedItems[0].
Index
;
System\Windows\Controls\VirtualizedCellInfoCollection.cs (1)
1571
rowIndex = cell.ItemInfo.
Index
;