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