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