1 write to
PresentationFramework (1)
System\Windows\Controls\UIElementCollection.cs (1)
463
this
[
index] = Cast(value);
128 references to
PresentationFramework (95)
MS\Internal\Ink\LassoSelectionBehavior.cs (1)
346
UIElement uiElement = this.InkCanvas.Children
[
x];
System\Windows\Controls\DataGrid.cs (2)
6392
row = itemsHost.Children
[
i] as DataGridRow;
6441
row = itemsHost.Children
[
i] as DataGridRow;
System\Windows\Controls\DataGridCellsPanel.cs (6)
648
Debug.Assert(child == InternalChildren
[
childIndex], "Wrong child was generated");
700
if (isRecycled && visualTreeIndex < children.Count && children
[
visualTreeIndex] == container)
714
Debug.Assert(children
[
visualTreeIndex] != null, "MoveVisualChild interprets a null destination as 'move to end'");
769
if (children
[
i] == child)
1176
visualChild = children
[
i];
1958
_realizedChildren.Add(children
[
i]);
System\Windows\Controls\DockPanel.cs (2)
209
UIElement child = children
[
i];
274
UIElement child = children
[
i];
System\Windows\Controls\Grid.cs (12)
364
UIElement child = children
[
i];
662
UIElement child = children
[
i];
681
UIElement cell = children
[
currentCell];
884
UIElement child = children
[
i];
1203
double oldWidth = children
[
i].DesiredSize.Width;
1207
hasDesiredSizeUChanged |= !DoubleUtil.AreClose(oldWidth, children
[
i].DesiredSize.Width);
1213
DefinitionsU[PrivateCells[i].ColumnIndex].UpdateMinSize(Math.Min(children
[
i].DesiredSize.Width, DefinitionsU[PrivateCells[i].ColumnIndex].UserMaxSize));
1222
children
[
i].DesiredSize.Width);
1230
DefinitionsV[PrivateCells[i].RowIndex].UpdateMinSize(Math.Min(children
[
i].DesiredSize.Height, DefinitionsV[PrivateCells[i].RowIndex].UserMaxSize));
1239
children
[
i].DesiredSize.Height);
1346
UIElement child = InternalChildren
[
cell];
3898
_currentChild = _enumerator2Collection
[
_enumerator2Index];
System\Windows\Controls\GridViewHeaderRowPresenter.cs (10)
255
UIElement child = children
[
GetVisualIndex(i)];
345
UIElement child = children
[
GetVisualIndex(i)];
372
GridViewColumnHeader header = children
[
GetVisualIndex(i)] as GridViewColumnHeader;
697
header = (GridViewColumnHeader)children
[
start];
869
GridViewColumnHeader header = (GridViewColumnHeader)InternalChildren
[
GetVisualIndex(i)];
996
header = (GridViewColumnHeader)InternalChildren
[
index];
1299
GridViewColumnHeader header = children
[
visualIndex] as GridViewColumnHeader;
1310
header = children
[
i] as GridViewColumnHeader;
1432
GridViewColumnHeader header = children
[
i] as GridViewColumnHeader;
1605
GridViewColumnHeader header = children
[
GetVisualIndex(i)] as GridViewColumnHeader;
System\Windows\Controls\GridViewRowPresenter.cs (6)
140
UIElement child = children
[
column.ActualIndex];
216
UIElement child = children
[
column.ActualIndex];
307
FrameworkElement cell = InternalChildren
[
index] as FrameworkElement;
323
ContentPresenter cp = InternalChildren
[
index] as ContentPresenter;
415
UIElement cell = children
[
indexList[i]];
646
cell = (FrameworkElement)children
[
i];
System\Windows\Controls\InkCanvas.cs (1)
2734
uiElementArray[i] = uiElementCollection
[
i];
System\Windows\Controls\ItemsControl.cs (1)
2471
FrameworkElement fe = children
[
i] as FrameworkElement;
System\Windows\Controls\Panel.cs (4)
380
return _uiElementCollection
[
visualIndex];
778
elements[i] = _uiElementCollection
[
fromPos.Index + i];
1009
int z = _uiElementCollection
[
i] != null
1010
? (int)_uiElementCollection
[
i].GetValue(ZIndexProperty)
System\Windows\Controls\Primitives\CalendarItem.cs (6)
350
CalendarDayButton b = dayButtonsHost
[
childIndex] as CalendarDayButton;
502
CalendarButton child = yearViewChildren
[
count - 1] as CalendarButton;
1012
FrameworkElement daytitle = _monthView.Children
[
childIndex] as FrameworkElement;
1042
CalendarDayButton childButton = _monthView.Children
[
childIndex] as CalendarDayButton;
1155
CalendarDayButton childButton = _monthView.Children
[
childIndex] as CalendarDayButton;
1174
CalendarDayButton childButton = _monthView.Children
[
childIndex] as CalendarDayButton;
System\Windows\Controls\Primitives\GridViewRowPresenterBase.cs (1)
127
return _uiElementCollection
[
index];
System\Windows\Controls\Primitives\ToolBarOverflowPanel.cs (5)
78
if (children
[
childrenIndex] != child)
99
UIElement child = children
[
i] as UIElement;
115
UIElement child = children
[
i] as UIElement;
160
Size sz = children
[
i].DesiredSize;
201
UIElement child = children
[
i];
System\Windows\Controls\Primitives\ToolBarPanel.cs (5)
141
Debug.Assert(children
[
childrenIndex] == child, "InternalChildren is out of sync with _generatedItemsCollection.");
188
Debug.Assert(children
[
childrenIndex] == child, "InternalChildren is out of sync with _generatedItemsCollection.");
204
if ((childrenIndex < childrenCount) && (children
[
childrenIndex] == child))
293
UIElement child = (UIElement)children
[
i];
365
UIElement child = children
[
i];
System\Windows\Controls\Primitives\UniformGrid.cs (2)
172
UIElement child = InternalChildren
[
i];
264
UIElement child = InternalChildren
[
i];
System\Windows\Controls\Stack.cs (10)
581
UIElement child = children
[
i];
634
if (fHorizontal) { projectedLogicalVisibleSpace -= children
[
firstViewport - 1].DesiredSize.Width; }
635
else { projectedLogicalVisibleSpace -= children
[
firstViewport - 1].DesiredSize.Height; }
741
UIElement child = (UIElement)children
[
i];
833
? ((UIElement)children
[
i]).DesiredSize.Width
834
: ((UIElement)children
[
i]).DesiredSize.Height;
939
Size childDesiredSize = InternalChildren
[
childIndex].DesiredSize;
946
childDesiredSize = InternalChildren
[
i].DesiredSize;
965
newRect.Width = InternalChildren
[
childIndex].DesiredSize.Width;
971
newRect.Height = InternalChildren
[
childIndex].DesiredSize.Height;
System\Windows\Controls\UIElementCollection.cs (1)
459
return this
[
index];
System\Windows\Controls\VirtualizingPanel.cs (1)
372
IHierarchicalVirtualizationAndScrollInfo virtualizingChild = children
[
i] as IHierarchicalVirtualizationAndScrollInfo;
System\Windows\Controls\VirtualizingStackPanel.cs (11)
1179
FrameworkElement fe = children
[
i] as FrameworkElement;
4265
IHierarchicalVirtualizationAndScrollInfo virtualizingChild = children
[
i] as IHierarchicalVirtualizationAndScrollInfo;
8762
if (isRecycled && visualTreeIndex < children.Count && children
[
visualTreeIndex] == container)
8776
Debug.Assert(children
[
visualTreeIndex] != null, "MoveVisualChild interprets a null destination as 'move to end'");
8777
children.MoveVisualChild(container, children
[
visualTreeIndex]);
8922
Debug.Assert(child == InternalChildren
[
childIndex], "Wrong child was generated");
9180
_realizedChildren.Add(children
[
i]);
9226
Debug.Assert(_realizedChildren[i] == children
[
i], "Realized and visual children must match");
9250
if (children
[
i] == child)
9276
visualChild = children
[
i];
9421
return NotifyCleanupItem(children
[
childIndex], itemsControl);
System\Windows\Controls\WrapPanel.cs (3)
228
UIElement child = children
[
i] as UIElement;
288
UIElement child = children
[
i] as UIElement;
337
UIElement child = children
[
i] as UIElement;
System\Windows\Documents\FixedPage.cs (4)
709
return _uiElementCollection
[
index];
839
uiElement = elementCollection
[
i];
883
DependencyObject element = this.Children
[
currentLevelIndex];
893
element = ((Canvas)element).Children
[
currentLevelIndex];
System\Windows\Input\KeyboardNavigation.cs (1)
593
Control control = (Control)_canvasChildren
[
i];
System.Windows.Controls.Ribbon (33)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGalleryCategoriesPanel.cs (3)
383
UIElement child = children
[
i] as UIElement;
453
UIElement child = children
[
i];
594
UIElement child = (UIElement)children
[
i];
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGalleryItemsPanel.cs (4)
337
UIElement child = children
[
i] as UIElement;
411
UIElement child = children
[
i] as UIElement;
575
maxRowHeight = Math.Max(maxRowHeight, children
[
i].DesiredSize.Height);
581
children
[
j].Arrange(new Rect(rowStartWidth, rowStartHeight, arrangeWidth, maxRowHeight));
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGroupItemsPanel.cs (6)
63
UIElement child = children
[
i];
184
children
[
starChildIndex].Measure(new Size(starLayoutInfo.RequestedStarMinWidth, constraint.Height));
207
UIElement child = children
[
i];
274
UIElement child = children
[
i];
307
UIElement child = children
[
i];
349
UIElement child = children
[
columnChildIndex];
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonMenuItemsPanel.cs (2)
206
totalDesiredHeight += children
[
i].DesiredSize.Height;
221
UIElement child = children
[
i];
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonQuickAccessToolBarOverflowPanel.cs (2)
23
UIElement child = Children
[
i];
44
UIElement child = (UIElement)children
[
i];
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonQuickAccessToolBarPanel.cs (6)
188
!object.ReferenceEquals(children
[
i], generatedChild))
226
!object.ReferenceEquals(overflowPanel.Children
[
overflowIndex], generatedChild))
276
UIElement child = (UIElement)children
[
i];
313
Debug.Assert(object.ReferenceEquals(InternalChildren
[
j], GeneratedChildren[j]));
314
UIElement currentChild = InternalChildren
[
j];
327
Debug.Assert(object.ReferenceEquals(QAT.OverflowPanel.Children
[
overflowPanelIndex], GeneratedChildren[k]));
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabHeadersPanel.cs (7)
249
UIElement child = children
[
index];
382
RibbonTabHeader ribbonTabHeader = children
[
i] as RibbonTabHeader;
405
UIElement child = children
[
i];
435
RibbonTabHeader ribbonTabHeader = children
[
i] as RibbonTabHeader;
454
UIElement child = children
[
i];
638
RibbonTabHeader tabHeader = children
[
i] as RibbonTabHeader;
671
UIElement child = children
[
i];
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabsPanel.cs (3)
39
children
[
i].Measure(availableSize);
40
Size childSize = children
[
i].DesiredSize;
56
children
[
i].Arrange(new Rect(0, 0, finalSize.Width, finalSize.Height));