4 writes to Index
PresentationFramework (4)
System\Windows\Controls\ItemContainerGenerator.cs (4)
2471position.Index += block.ContainerCount; 2508position.Index += block.ContainerCount; 2685position.Index += block.ContainerCount; 2724position.Index += block.ContainerCount;
32 references to Index
PresentationFramework (28)
System\Windows\Controls\DataGridCellsPanel.cs (3)
527childIndex = (position.Offset == 0) ? position.Index : position.Index + 1; 2092int pos = position.Index;
System\Windows\Controls\ItemContainerGenerator.cs (7)
279throw new ArgumentException(SR.Format(SR.RemoveRequiresOffsetZero, position.Index, position.Offset), "position"); 290int index = position.Index; 513if (itemBlock == _itemMap && position.Index == -1) 524int index = position.Index; 1644if (position.Index != -1) 1648int index = position.Index; 2092if (position.Offset == 0 && position.Index >= 0)
System\Windows\Controls\Panel.cs (5)
729_uiElementCollection.InsertInternal(pos.Index + 1 + i, e); 743_uiElementCollection.RemoveRangeInternal(pos.Index, containerCount); 762_uiElementCollection.SetInternal(pos.Index + i, e); 786elements[i] = _uiElementCollection[fromPos.Index + i]; 788_uiElementCollection.RemoveRangeInternal(fromPos.Index, containerCount);
System\Windows\Controls\Primitives\ToolBarPanel.cs (7)
422_generatedItemsCollection.Insert(pos.Index + 1 + i, e); 459RemoveChild(_generatedItemsCollection[pos.Index + i]); 462_generatedItemsCollection.RemoveRange(pos.Index, containerCount); 480RemoveChild(_generatedItemsCollection[pos.Index + i]); 481_generatedItemsCollection[pos.Index + i] = e; 508UIElement child = _generatedItemsCollection[fromPos.Index + i]; 513_generatedItemsCollection.RemoveRange(fromPos.Index, containerCount);
System\Windows\Controls\VirtualizingStackPanel.cs (6)
8897return (position.Offset == 0 && position.Index >= 0); 8978int childIndex = args.Position.Index + i; 9001int pos = position.Index; 9237Debug.Assert(_realizedChildren[position.Index] == child, "_realizedChildren is corrupt!"); 9338childIndex = (position.Offset == 0) ? position.Index : position.Index + 1;
System.Windows.Controls.Ribbon (4)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonQuickAccessToolBarPanel.cs (4)
52RemoveItem(args.Position.Index); 65UIElement childToMove = GeneratedChildren[args.OldPosition.Index]; 66RemoveItem(args.OldPosition.Index); 67GeneratedChildren.Insert(args.Position.Index, childToMove);