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