1 write to
PresentationFramework (1)
System\Windows\Controls\UIElementCollection.cs (1)
464this[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)
6434row = itemsHost.Children[i] as DataGridRow; 6483row = itemsHost.Children[i] as DataGridRow;
System\Windows\Controls\DataGridCellsPanel.cs (6)
650Debug.Assert(child == InternalChildren[childIndex], "Wrong child was generated"); 702if (isRecycled && visualTreeIndex < children.Count && children[visualTreeIndex] == container) 716Debug.Assert(children[visualTreeIndex] != null, "MoveVisualChild interprets a null destination as 'move to end'"); 771if (children[i] == child) 1178visualChild = children[i]; 1964_realizedChildren.Add(children[i]);
System\Windows\Controls\DockPanel.cs (2)
213UIElement child = children[i]; 278UIElement child = children[i];
System\Windows\Controls\Grid.cs (12)
367UIElement child = children[i]; 665UIElement child = children[i]; 687UIElement cell = children[currentCell]; 893UIElement child = children[i]; 1211double oldWidth = children[i].DesiredSize.Width; 1215hasDesiredSizeUChanged |= !DoubleUtil.AreClose(oldWidth, children[i].DesiredSize.Width); 1221DefinitionsU[PrivateCells[i].ColumnIndex].UpdateMinSize(Math.Min(children[i].DesiredSize.Width, DefinitionsU[PrivateCells[i].ColumnIndex].UserMaxSize)); 1230children[i].DesiredSize.Width); 1238DefinitionsV[PrivateCells[i].RowIndex].UpdateMinSize(Math.Min(children[i].DesiredSize.Height, DefinitionsV[PrivateCells[i].RowIndex].UserMaxSize)); 1247children[i].DesiredSize.Height); 1354UIElement child = InternalChildren[cell]; 3906_currentChild = _enumerator2Collection[_enumerator2Index];
System\Windows\Controls\GridViewHeaderRowPresenter.cs (10)
256UIElement child = children[GetVisualIndex(i)]; 346UIElement child = children[GetVisualIndex(i)]; 373GridViewColumnHeader header = children[GetVisualIndex(i)] as GridViewColumnHeader; 698header = (GridViewColumnHeader)children[start]; 870GridViewColumnHeader header = (GridViewColumnHeader)InternalChildren[GetVisualIndex(i)]; 998header = (GridViewColumnHeader)InternalChildren[index]; 1295GridViewColumnHeader header = children[visualIndex] as GridViewColumnHeader; 1306header = children[i] as GridViewColumnHeader; 1428GridViewColumnHeader header = children[i] as GridViewColumnHeader; 1607GridViewColumnHeader header = children[GetVisualIndex(i)] as GridViewColumnHeader;
System\Windows\Controls\GridViewRowPresenter.cs (6)
141UIElement child = children[column.ActualIndex]; 217UIElement child = children[column.ActualIndex]; 308FrameworkElement cell = InternalChildren[index] as FrameworkElement; 324ContentPresenter cp = InternalChildren[index] as ContentPresenter; 416UIElement cell = children[indexList[i]]; 644cell = (FrameworkElement)children[i];
System\Windows\Controls\InkCanvas.cs (1)
2719uiElementArray[i] = uiElementCollection[i];
System\Windows\Controls\ItemsControl.cs (1)
2502FrameworkElement fe = children[i] as FrameworkElement;
System\Windows\Controls\Panel.cs (4)
381return _uiElementCollection[visualIndex]; 779elements[i] = _uiElementCollection[fromPos.Index + i]; 1010int z = _uiElementCollection[i] != null 1011? (int)_uiElementCollection[i].GetValue(ZIndexProperty)
System\Windows\Controls\Primitives\CalendarItem.cs (6)
351CalendarDayButton b = dayButtonsHost[childIndex] as CalendarDayButton; 503CalendarButton child = yearViewChildren[count - 1] as CalendarButton; 1020FrameworkElement daytitle = _monthView.Children[childIndex] as FrameworkElement; 1050CalendarDayButton childButton = _monthView.Children[childIndex] as CalendarDayButton; 1163CalendarDayButton childButton = _monthView.Children[childIndex] as CalendarDayButton; 1183CalendarDayButton childButton = _monthView.Children[childIndex] as CalendarDayButton;
System\Windows\Controls\Primitives\GridViewRowPresenterBase.cs (1)
128return _uiElementCollection[index];
System\Windows\Controls\Primitives\ToolBarOverflowPanel.cs (5)
79if (children[childrenIndex] != child) 100UIElement child = children[i] as UIElement; 116UIElement child = children[i] as UIElement; 161Size sz = children[i].DesiredSize; 202UIElement child = children[i];
System\Windows\Controls\Primitives\ToolBarPanel.cs (5)
142Debug.Assert(children[childrenIndex] == child, "InternalChildren is out of sync with _generatedItemsCollection."); 189Debug.Assert(children[childrenIndex] == child, "InternalChildren is out of sync with _generatedItemsCollection."); 205if ((childrenIndex < childrenCount) && (children[childrenIndex] == child)) 297UIElement child = (UIElement)children[i]; 367UIElement child = children[i];
System\Windows\Controls\Primitives\UniformGrid.cs (2)
173UIElement child = InternalChildren[i]; 265UIElement child = InternalChildren[i];
System\Windows\Controls\Stack.cs (10)
586UIElement child = children[i]; 639if (fHorizontal) { projectedLogicalVisibleSpace -= children[firstViewport - 1].DesiredSize.Width; } 640else { projectedLogicalVisibleSpace -= children[firstViewport - 1].DesiredSize.Height; } 746UIElement child = (UIElement)children[i]; 838? ((UIElement)children[i]).DesiredSize.Width 839: ((UIElement)children[i]).DesiredSize.Height; 944Size childDesiredSize = InternalChildren[childIndex].DesiredSize; 951childDesiredSize = InternalChildren[i].DesiredSize; 970newRect.Width = InternalChildren[childIndex].DesiredSize.Width; 976newRect.Height = InternalChildren[childIndex].DesiredSize.Height;
System\Windows\Controls\UIElementCollection.cs (1)
460return this[index];
System\Windows\Controls\VirtualizingPanel.cs (1)
376IHierarchicalVirtualizationAndScrollInfo virtualizingChild = children[i] as IHierarchicalVirtualizationAndScrollInfo;
System\Windows\Controls\VirtualizingStackPanel.cs (11)
1180FrameworkElement fe = children[i] as FrameworkElement; 4286IHierarchicalVirtualizationAndScrollInfo virtualizingChild = children[i] as IHierarchicalVirtualizationAndScrollInfo; 8784if (isRecycled && visualTreeIndex < children.Count && children[visualTreeIndex] == container) 8798Debug.Assert(children[visualTreeIndex] != null, "MoveVisualChild interprets a null destination as 'move to end'"); 8799children.MoveVisualChild(container, children[visualTreeIndex]); 8944Debug.Assert(child == InternalChildren[childIndex], "Wrong child was generated"); 9202_realizedChildren.Add(children[i]); 9248Debug.Assert(_realizedChildren[i] == children[i], "Realized and visual children must match"); 9272if (children[i] == child) 9298visualChild = children[i]; 9443return NotifyCleanupItem(children[childIndex], itemsControl);
System\Windows\Controls\WrapPanel.cs (3)
229UIElement child = children[i] as UIElement; 289UIElement child = children[i] as UIElement; 338UIElement child = children[i] as UIElement;
System\Windows\Documents\FixedPage.cs (4)
708return _uiElementCollection[index]; 838uiElement = elementCollection[i]; 882DependencyObject element = this.Children[currentLevelIndex]; 892element = ((Canvas)element).Children[currentLevelIndex];
System\Windows\Input\KeyboardNavigation.cs (1)
592Control control = (Control)_canvasChildren[i];
System.Windows.Controls.Ribbon (33)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGalleryCategoriesPanel.cs (3)
384UIElement child = children[i] as UIElement; 454UIElement child = children[i]; 595UIElement child = (UIElement)children[i];
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGalleryItemsPanel.cs (4)
338UIElement child = children[i] as UIElement; 412UIElement child = children[i] as UIElement; 576maxRowHeight = Math.Max(maxRowHeight, children[i].DesiredSize.Height); 582children[j].Arrange(new Rect(rowStartWidth, rowStartHeight, arrangeWidth, maxRowHeight));
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGroupItemsPanel.cs (6)
64UIElement child = children[i]; 185children[starChildIndex].Measure(new Size(starLayoutInfo.RequestedStarMinWidth, constraint.Height)); 208UIElement child = children[i]; 275UIElement child = children[i]; 308UIElement child = children[i]; 350UIElement child = children[columnChildIndex];
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonMenuItemsPanel.cs (2)
207totalDesiredHeight += children[i].DesiredSize.Height; 222UIElement child = children[i];
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonQuickAccessToolBarOverflowPanel.cs (2)
24UIElement child = Children[i]; 45UIElement child = (UIElement)children[i];
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonQuickAccessToolBarPanel.cs (6)
189!object.ReferenceEquals(children[i], generatedChild)) 227!object.ReferenceEquals(overflowPanel.Children[overflowIndex], generatedChild)) 280UIElement child = (UIElement)children[i]; 317Debug.Assert(object.ReferenceEquals(InternalChildren[j], GeneratedChildren[j])); 318UIElement currentChild = InternalChildren[j]; 331Debug.Assert(object.ReferenceEquals(QAT.OverflowPanel.Children[overflowPanelIndex], GeneratedChildren[k]));
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabHeadersPanel.cs (7)
250UIElement child = children[index]; 383RibbonTabHeader ribbonTabHeader = children[i] as RibbonTabHeader; 406UIElement child = children[i]; 436RibbonTabHeader ribbonTabHeader = children[i] as RibbonTabHeader; 455UIElement child = children[i]; 639RibbonTabHeader tabHeader = children[i] as RibbonTabHeader; 672UIElement child = children[i];
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabsPanel.cs (3)
40children[i].Measure(availableSize); 41Size childSize = children[i].DesiredSize; 57children[i].Arrange(new Rect(0, 0, finalSize.Width, finalSize.Height));