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