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)
1995key.Index = i; 2001info.Index = i; 2150_selectedItems[0].Index = index;
71 references to Index
PresentationFramework (71)
System\Windows\Controls\ComboBox.cs (1)
1106int index = info.Index;
System\Windows\Controls\DataGrid.cs (30)
1793int rowIndex = info.Index; 1801int rowIndex = info.Index; 1812DataGridRow row = (DataGridRow)ItemContainerGenerator.ContainerFromIndex(info.Index); 2641indexToSelect = currentInfo.Index; 2644int anchorIndex = _selectionAnchor.Value.ItemInfo.Index; 3096int currentIndex = currentCell.ItemInfo.Index; 4477dataGrid._selectedCells.RemoveAllButOneRow(dataGrid.InternalSelectedInfo.Index); 4676int rowIndex = rowInfo.Index; 4870int startIndex = _selectionAnchor.Value.ItemInfo.Index; 4871int endIndex = info.Index; 4892int itemIndex = itemInfo.Index; 4914int currentCellIndex = CurrentCell.ItemInfo.Index; 4933int itemIndex = itemInfo.Index; 5007_selectedCells.AddRegion(_editingRowInfo.Index, 0, 1, numColumns); 5064int startIndex = _selectionAnchor.Value.ItemInfo.Index; 5065int endIndex = cellInfo.ItemInfo.Index; 5090int currentCellIndex = CurrentCell.ItemInfo.Index; 5142bool singleRowOperation = (_editingRowInfo != null && _editingRowInfo.Index == cellInfo.ItemInfo.Index); 5147selectedCellsContainsCellInfo = _selectedCells.Contains(_editingRowInfo.Index, cellInfoColumnIndex); 5156_selectedCells.RemoveRegion(_editingRowInfo.Index, cellInfoColumnIndex, 1, 1); 5187_selectedCells.AddRegion(_editingRowInfo.Index, cellInfoColumnIndex, 1, 1); 5212int itemIndex = info.Index; 5228int itemIndex = info.Index; 5611int currentRowIndex = currentInfo.Index; 5995int index = CurrentInfo.Index; 6136int rowIndex = currentInfo.Index; 7779return (info != null) && (info.Index != -1); 7793if (info.Index >= 0) 7796_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) 843end = AnchorItemInternal.Index; 868int itemIndex = info.Index;
System\Windows\Controls\Primitives\Selector.cs (7)
1567int index = _selectedItems[0].Index; 1692userSelectedItems.RemoveAt(~toRemove[i].Index); 1713&& (_selectedItems.Count == 0 || selectedIndex != _selectedItems[0].Index))) 1968if (info.Index < 0) 1974knownIndices.Add(info.Index); 2045if (info.Index < 0) 2146int index = _selectedItems[0].Index;
System\Windows\Controls\VirtualizedCellInfoCollection.cs (1)
1567rowIndex = cell.ItemInfo.Index;