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