4 writes to Index
PresentationFramework (4)
src\Framework\System\Windows\Controls\ItemContainerGenerator.cs (4)
2479
position.
Index
+= block.ContainerCount;
2516
position.
Index
+= block.ContainerCount;
2693
position.
Index
+= block.ContainerCount;
2732
position.
Index
+= block.ContainerCount;
28 references to Index
PresentationFramework (28)
src\Framework\System\Windows\Controls\DataGridCellsPanel.cs (3)
529
childIndex = (position.Offset == 0) ? position.
Index
: position.
Index
+ 1;
2094
int pos = position.
Index
;
src\Framework\System\Windows\Controls\ItemContainerGenerator.cs (7)
281
throw new ArgumentException(SR.Get(SRID.RemoveRequiresOffsetZero, position.
Index
, position.Offset), "position");
292
int index = position.
Index
;
516
if (itemBlock == _itemMap && position.
Index
== -1)
527
int index = position.
Index
;
1652
if (position.
Index
!= -1)
1656
int index = position.
Index
;
2100
if (position.Offset == 0 && position.
Index
>= 0)
src\Framework\System\Windows\Controls\Panel.cs (5)
733
_uiElementCollection.InsertInternal(pos.
Index
+ 1 + i, e);
747
_uiElementCollection.RemoveRangeInternal(pos.
Index
, containerCount);
766
_uiElementCollection.SetInternal(pos.
Index
+ i, e);
790
elements[i] = _uiElementCollection[fromPos.
Index
+ i];
792
_uiElementCollection.RemoveRangeInternal(fromPos.
Index
, containerCount);
src\Framework\System\Windows\Controls\Primitives\ToolBarPanel.cs (7)
423
_generatedItemsCollection.Insert(pos.
Index
+ 1 + i, e);
460
RemoveChild(_generatedItemsCollection[pos.
Index
+ i]);
463
_generatedItemsCollection.RemoveRange(pos.
Index
, containerCount);
481
RemoveChild(_generatedItemsCollection[pos.
Index
+ i]);
482
_generatedItemsCollection[pos.
Index
+ i] = e;
509
UIElement child = _generatedItemsCollection[fromPos.
Index
+ i];
514
_generatedItemsCollection.RemoveRange(fromPos.
Index
, containerCount);
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (6)
8739
return (position.Offset == 0 && position.
Index
>= 0);
8820
int childIndex = args.Position.
Index
+ i;
8843
int pos = position.
Index
;
9080
Debug.Assert(_realizedChildren[position.
Index
] == child, "_realizedChildren is corrupt!");
9184
childIndex = (position.Offset == 0) ? position.
Index
: position.
Index
+ 1;