4 writes to Index
PresentationFramework (4)
System\Windows\Controls\ItemContainerGenerator.cs (4)
2465position.Index += block.ContainerCount; 2502position.Index += block.ContainerCount; 2679position.Index += block.ContainerCount; 2718position.Index += block.ContainerCount;
32 references to Index
PresentationFramework (28)
System\Windows\Controls\DataGridCellsPanel.cs (3)
523childIndex = (position.Offset == 0) ? position.Index : position.Index + 1; 2088int pos = position.Index;
System\Windows\Controls\ItemContainerGenerator.cs (7)
273throw new ArgumentException(SR.Format(SR.RemoveRequiresOffsetZero, position.Index, position.Offset), "position"); 284int index = position.Index; 507if (itemBlock == _itemMap && position.Index == -1) 518int index = position.Index; 1638if (position.Index != -1) 1642int index = position.Index; 2086if (position.Offset == 0 && position.Index >= 0)
System\Windows\Controls\Panel.cs (5)
722_uiElementCollection.InsertInternal(pos.Index + 1 + i, e); 736_uiElementCollection.RemoveRangeInternal(pos.Index, containerCount); 755_uiElementCollection.SetInternal(pos.Index + i, e); 779elements[i] = _uiElementCollection[fromPos.Index + i]; 781_uiElementCollection.RemoveRangeInternal(fromPos.Index, containerCount);
System\Windows\Controls\Primitives\ToolBarPanel.cs (7)
413_generatedItemsCollection.Insert(pos.Index + 1 + i, e); 450RemoveChild(_generatedItemsCollection[pos.Index + i]); 453_generatedItemsCollection.RemoveRange(pos.Index, containerCount); 471RemoveChild(_generatedItemsCollection[pos.Index + i]); 472_generatedItemsCollection[pos.Index + i] = e; 499UIElement child = _generatedItemsCollection[fromPos.Index + i]; 504_generatedItemsCollection.RemoveRange(fromPos.Index, containerCount);
System\Windows\Controls\VirtualizingStackPanel.cs (6)
8892return (position.Offset == 0 && position.Index >= 0); 8973int childIndex = args.Position.Index + i; 8996int pos = position.Index; 9232Debug.Assert(_realizedChildren[position.Index] == child, "_realizedChildren is corrupt!"); 9333childIndex = (position.Offset == 0) ? position.Index : position.Index + 1;
System.Windows.Controls.Ribbon (4)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonQuickAccessToolBarPanel.cs (4)
46RemoveItem(args.Position.Index); 59UIElement childToMove = GeneratedChildren[args.OldPosition.Index]; 60RemoveItem(args.OldPosition.Index); 61GeneratedChildren.Insert(args.Position.Index, childToMove);