1 write to
PresentationFramework (1)
System\Windows\Controls\UIElementCollection.cs (1)
468this[index] = Cast(value);
128 references to
PresentationFramework (95)
MS\Internal\Ink\LassoSelectionBehavior.cs (1)
355UIElement uiElement = this.InkCanvas.Children[x];
System\Windows\Controls\DataGrid.cs (2)
6437row = itemsHost.Children[i] as DataGridRow; 6486row = itemsHost.Children[i] as DataGridRow;
System\Windows\Controls\DataGridCellsPanel.cs (6)
654Debug.Assert(child == InternalChildren[childIndex], "Wrong child was generated"); 706if (isRecycled && visualTreeIndex < children.Count && children[visualTreeIndex] == container) 720Debug.Assert(children[visualTreeIndex] != null, "MoveVisualChild interprets a null destination as 'move to end'"); 775if (children[i] == child) 1182visualChild = children[i]; 1968_realizedChildren.Add(children[i]);
System\Windows\Controls\DockPanel.cs (2)
219UIElement child = children[i]; 284UIElement child = children[i];
System\Windows\Controls\Grid.cs (12)
376UIElement child = children[i]; 674UIElement child = children[i]; 696UIElement cell = children[currentCell]; 902UIElement child = children[i]; 1220double oldWidth = children[i].DesiredSize.Width; 1224hasDesiredSizeUChanged |= !DoubleUtil.AreClose(oldWidth, children[i].DesiredSize.Width); 1230DefinitionsU[PrivateCells[i].ColumnIndex].UpdateMinSize(Math.Min(children[i].DesiredSize.Width, DefinitionsU[PrivateCells[i].ColumnIndex].UserMaxSize)); 1239children[i].DesiredSize.Width); 1247DefinitionsV[PrivateCells[i].RowIndex].UpdateMinSize(Math.Min(children[i].DesiredSize.Height, DefinitionsV[PrivateCells[i].RowIndex].UserMaxSize)); 1256children[i].DesiredSize.Height); 1363UIElement child = InternalChildren[cell]; 3915_currentChild = _enumerator2Collection[_enumerator2Index];
System\Windows\Controls\GridViewHeaderRowPresenter.cs (10)
259UIElement child = children[GetVisualIndex(i)]; 349UIElement child = children[GetVisualIndex(i)]; 376GridViewColumnHeader header = children[GetVisualIndex(i)] as GridViewColumnHeader; 701header = (GridViewColumnHeader)children[start]; 873GridViewColumnHeader header = (GridViewColumnHeader)InternalChildren[GetVisualIndex(i)]; 1001header = (GridViewColumnHeader)InternalChildren[index]; 1298GridViewColumnHeader header = children[visualIndex] as GridViewColumnHeader; 1309header = children[i] as GridViewColumnHeader; 1431GridViewColumnHeader header = children[i] as GridViewColumnHeader; 1610GridViewColumnHeader header = children[GetVisualIndex(i)] as GridViewColumnHeader;
System\Windows\Controls\GridViewRowPresenter.cs (6)
145UIElement child = children[column.ActualIndex]; 221UIElement child = children[column.ActualIndex]; 312FrameworkElement cell = InternalChildren[index] as FrameworkElement; 328ContentPresenter cp = InternalChildren[index] as ContentPresenter; 420UIElement cell = children[indexList[i]]; 648cell = (FrameworkElement)children[i];
System\Windows\Controls\InkCanvas.cs (1)
2731uiElementArray[i] = uiElementCollection[i];
System\Windows\Controls\ItemsControl.cs (1)
2511FrameworkElement fe = children[i] as FrameworkElement;
System\Windows\Controls\Panel.cs (4)
388return _uiElementCollection[visualIndex]; 786elements[i] = _uiElementCollection[fromPos.Index + i]; 1017int z = _uiElementCollection[i] != null 1018? (int)_uiElementCollection[i].GetValue(ZIndexProperty)
System\Windows\Controls\Primitives\CalendarItem.cs (6)
356CalendarDayButton b = dayButtonsHost[childIndex] as CalendarDayButton; 508CalendarButton child = yearViewChildren[count - 1] as CalendarButton; 1025FrameworkElement daytitle = _monthView.Children[childIndex] as FrameworkElement; 1055CalendarDayButton childButton = _monthView.Children[childIndex] as CalendarDayButton; 1168CalendarDayButton childButton = _monthView.Children[childIndex] as CalendarDayButton; 1188CalendarDayButton childButton = _monthView.Children[childIndex] as CalendarDayButton;
System\Windows\Controls\Primitives\GridViewRowPresenterBase.cs (1)
132return _uiElementCollection[index];
System\Windows\Controls\Primitives\ToolBarOverflowPanel.cs (5)
89if (children[childrenIndex] != child) 110UIElement child = children[i] as UIElement; 126UIElement child = children[i] as UIElement; 171Size sz = children[i].DesiredSize; 212UIElement child = children[i];
System\Windows\Controls\Primitives\ToolBarPanel.cs (5)
151Debug.Assert(children[childrenIndex] == child, "InternalChildren is out of sync with _generatedItemsCollection."); 198Debug.Assert(children[childrenIndex] == child, "InternalChildren is out of sync with _generatedItemsCollection."); 214if ((childrenIndex < childrenCount) && (children[childrenIndex] == child)) 306UIElement child = (UIElement)children[i]; 376UIElement child = children[i];
System\Windows\Controls\Primitives\UniformGrid.cs (2)
181UIElement child = InternalChildren[i]; 273UIElement child = InternalChildren[i];
System\Windows\Controls\Stack.cs (10)
592UIElement child = children[i]; 645if (fHorizontal) { projectedLogicalVisibleSpace -= children[firstViewport - 1].DesiredSize.Width; } 646else { projectedLogicalVisibleSpace -= children[firstViewport - 1].DesiredSize.Height; } 752UIElement child = (UIElement)children[i]; 844? ((UIElement)children[i]).DesiredSize.Width 845: ((UIElement)children[i]).DesiredSize.Height; 950Size childDesiredSize = InternalChildren[childIndex].DesiredSize; 957childDesiredSize = InternalChildren[i].DesiredSize; 976newRect.Width = InternalChildren[childIndex].DesiredSize.Width; 982newRect.Height = InternalChildren[childIndex].DesiredSize.Height;
System\Windows\Controls\UIElementCollection.cs (1)
464return this[index];
System\Windows\Controls\VirtualizingPanel.cs (1)
382IHierarchicalVirtualizationAndScrollInfo virtualizingChild = children[i] as IHierarchicalVirtualizationAndScrollInfo;
System\Windows\Controls\VirtualizingStackPanel.cs (11)
1185FrameworkElement fe = children[i] as FrameworkElement; 4291IHierarchicalVirtualizationAndScrollInfo virtualizingChild = children[i] as IHierarchicalVirtualizationAndScrollInfo; 8789if (isRecycled && visualTreeIndex < children.Count && children[visualTreeIndex] == container) 8803Debug.Assert(children[visualTreeIndex] != null, "MoveVisualChild interprets a null destination as 'move to end'"); 8804children.MoveVisualChild(container, children[visualTreeIndex]); 8949Debug.Assert(child == InternalChildren[childIndex], "Wrong child was generated"); 9207_realizedChildren.Add(children[i]); 9253Debug.Assert(_realizedChildren[i] == children[i], "Realized and visual children must match"); 9277if (children[i] == child) 9303visualChild = children[i]; 9448return NotifyCleanupItem(children[childIndex], itemsControl);
System\Windows\Controls\WrapPanel.cs (3)
239UIElement child = children[i] as UIElement; 299UIElement child = children[i] as UIElement; 348UIElement child = children[i] as UIElement;
System\Windows\Documents\FixedPage.cs (4)
716return _uiElementCollection[index]; 846uiElement = elementCollection[i]; 890DependencyObject element = this.Children[currentLevelIndex]; 900element = ((Canvas)element).Children[currentLevelIndex];
System\Windows\Input\KeyboardNavigation.cs (1)
602Control control = (Control)_canvasChildren[i];
System.Windows.Controls.Ribbon (33)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGalleryCategoriesPanel.cs (3)
389UIElement child = children[i] as UIElement; 459UIElement child = children[i]; 600UIElement child = (UIElement)children[i];
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGalleryItemsPanel.cs (4)
343UIElement child = children[i] as UIElement; 417UIElement child = children[i] as UIElement; 581maxRowHeight = Math.Max(maxRowHeight, children[i].DesiredSize.Height); 587children[j].Arrange(new Rect(rowStartWidth, rowStartHeight, arrangeWidth, maxRowHeight));
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGroupItemsPanel.cs (6)
66UIElement child = children[i]; 187children[starChildIndex].Measure(new Size(starLayoutInfo.RequestedStarMinWidth, constraint.Height)); 210UIElement child = children[i]; 277UIElement child = children[i]; 310UIElement child = children[i]; 352UIElement child = children[columnChildIndex];
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonMenuItemsPanel.cs (2)
211totalDesiredHeight += children[i].DesiredSize.Height; 226UIElement child = children[i];
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonQuickAccessToolBarOverflowPanel.cs (2)
28UIElement child = Children[i]; 49UIElement child = (UIElement)children[i];
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonQuickAccessToolBarPanel.cs (6)
195!object.ReferenceEquals(children[i], generatedChild)) 233!object.ReferenceEquals(overflowPanel.Children[overflowIndex], generatedChild)) 286UIElement child = (UIElement)children[i]; 323Debug.Assert(object.ReferenceEquals(InternalChildren[j], GeneratedChildren[j])); 324UIElement currentChild = InternalChildren[j]; 337Debug.Assert(object.ReferenceEquals(QAT.OverflowPanel.Children[overflowPanelIndex], GeneratedChildren[k]));
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabHeadersPanel.cs (7)
253UIElement child = children[index]; 386RibbonTabHeader ribbonTabHeader = children[i] as RibbonTabHeader; 409UIElement child = children[i]; 439RibbonTabHeader ribbonTabHeader = children[i] as RibbonTabHeader; 458UIElement child = children[i]; 642RibbonTabHeader tabHeader = children[i] as RibbonTabHeader; 675UIElement child = children[i];
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabsPanel.cs (3)
44children[i].Measure(availableSize); 45Size childSize = children[i].DesiredSize; 61children[i].Arrange(new Rect(0, 0, finalSize.Width, finalSize.Height));