1 write to
PresentationFramework (1)
src\Framework\System\Windows\Controls\UIElementCollection.cs (1)
474this[index] = Cast(value);
106 references to
PresentationFramework (94)
src\Framework\MS\Internal\Ink\LassoSelectionBehavior.cs (1)
358UIElement uiElement = this.InkCanvas.Children[x];
src\Framework\System\Windows\Controls\DataGrid.cs (2)
6442row = itemsHost.Children[i] as DataGridRow; 6491row = itemsHost.Children[i] as DataGridRow;
src\Framework\System\Windows\Controls\DataGridCellsPanel.cs (6)
656Debug.Assert(child == InternalChildren[childIndex], "Wrong child was generated"); 708if (isRecycled && visualTreeIndex < children.Count && children[visualTreeIndex] == container) 722Debug.Assert(children[visualTreeIndex] != null, "MoveVisualChild interprets a null destination as 'move to end'"); 777if (children[i] == child) 1184visualChild = children[i]; 1970_realizedChildren.Add(children[i]);
src\Framework\System\Windows\Controls\DockPanel.cs (2)
225UIElement child = children[i]; 290UIElement child = children[i];
src\Framework\System\Windows\Controls\Grid.cs (12)
438UIElement child = children[i]; 737UIElement child = children[i]; 759UIElement cell = children[currentCell]; 965UIElement child = children[i]; 1284double oldWidth = children[i].DesiredSize.Width; 1288hasDesiredSizeUChanged |= !DoubleUtil.AreClose(oldWidth, children[i].DesiredSize.Width); 1294DefinitionsU[PrivateCells[i].ColumnIndex].UpdateMinSize(Math.Min(children[i].DesiredSize.Width, DefinitionsU[PrivateCells[i].ColumnIndex].UserMaxSize)); 1303children[i].DesiredSize.Width); 1311DefinitionsV[PrivateCells[i].RowIndex].UpdateMinSize(Math.Min(children[i].DesiredSize.Height, DefinitionsV[PrivateCells[i].RowIndex].UserMaxSize)); 1320children[i].DesiredSize.Height); 1427UIElement child = InternalChildren[cell]; 4139_currentChild = _enumerator2Collection[_enumerator2Index];
src\Framework\System\Windows\Controls\GridViewHeaderRowPresenter.cs (10)
261UIElement child = children[GetVisualIndex(i)]; 351UIElement child = children[GetVisualIndex(i)]; 378GridViewColumnHeader header = children[GetVisualIndex(i)] as GridViewColumnHeader; 703header = (GridViewColumnHeader)children[start]; 875GridViewColumnHeader header = (GridViewColumnHeader)InternalChildren[GetVisualIndex(i)]; 1003header = (GridViewColumnHeader)InternalChildren[index]; 1301GridViewColumnHeader header = children[visualIndex] as GridViewColumnHeader; 1312header = children[i] as GridViewColumnHeader; 1434GridViewColumnHeader header = children[i] as GridViewColumnHeader; 1613GridViewColumnHeader header = children[GetVisualIndex(i)] as GridViewColumnHeader;
src\Framework\System\Windows\Controls\GridViewRowPresenter.cs (6)
147UIElement child = children[column.ActualIndex]; 223UIElement child = children[column.ActualIndex]; 314FrameworkElement cell = InternalChildren[index] as FrameworkElement; 330ContentPresenter cp = InternalChildren[index] as ContentPresenter; 423UIElement cell = children[indexList[i]]; 651cell = (FrameworkElement)children[i];
src\Framework\System\Windows\Controls\InkCanvas.cs (1)
2871uiElementArray[i] = uiElementCollection[i];
src\Framework\System\Windows\Controls\ItemsControl.cs (1)
2514FrameworkElement fe = children[i] as FrameworkElement;
src\Framework\System\Windows\Controls\Panel.cs (4)
392return _uiElementCollection[visualIndex]; 790elements[i] = _uiElementCollection[fromPos.Index + i]; 1027int z = _uiElementCollection[i] != null 1028? (int)_uiElementCollection[i].GetValue(ZIndexProperty)
src\Framework\System\Windows\Controls\Primitives\CalendarItem.cs (6)
357CalendarDayButton b = dayButtonsHost[childIndex] as CalendarDayButton; 509CalendarButton child = yearViewChildren[count - 1] as CalendarButton; 1028FrameworkElement daytitle = _monthView.Children[childIndex] as FrameworkElement; 1058CalendarDayButton childButton = _monthView.Children[childIndex] as CalendarDayButton; 1171CalendarDayButton childButton = _monthView.Children[childIndex] as CalendarDayButton; 1191CalendarDayButton childButton = _monthView.Children[childIndex] as CalendarDayButton;
src\Framework\System\Windows\Controls\Primitives\GridViewRowPresenterBase.cs (1)
133return _uiElementCollection[index];
src\Framework\System\Windows\Controls\Primitives\ToolBarOverflowPanel.cs (5)
90if (children[childrenIndex] != child) 111UIElement child = children[i] as UIElement; 127UIElement child = children[i] as UIElement; 172Size sz = children[i].DesiredSize; 213UIElement child = children[i];
src\Framework\System\Windows\Controls\Primitives\ToolBarPanel.cs (5)
152Debug.Assert(children[childrenIndex] == child, "InternalChildren is out of sync with _generatedItemsCollection."); 199Debug.Assert(children[childrenIndex] == child, "InternalChildren is out of sync with _generatedItemsCollection."); 215if ((childrenIndex < childrenCount) && (children[childrenIndex] == child)) 307UIElement child = (UIElement)children[i]; 377UIElement child = children[i];
src\Framework\System\Windows\Controls\Primitives\UniformGrid.cs (2)
189UIElement child = InternalChildren[i]; 281UIElement child = InternalChildren[i];
src\Framework\System\Windows\Controls\Stack.cs (10)
598UIElement child = children[i]; 651if (fHorizontal) { projectedLogicalVisibleSpace -= children[firstViewport - 1].DesiredSize.Width; } 652else { projectedLogicalVisibleSpace -= children[firstViewport - 1].DesiredSize.Height; } 758UIElement child = (UIElement)children[i]; 850? ((UIElement)children[i]).DesiredSize.Width 851: ((UIElement)children[i]).DesiredSize.Height; 956Size childDesiredSize = InternalChildren[childIndex].DesiredSize; 963childDesiredSize = InternalChildren[i].DesiredSize; 982newRect.Width = InternalChildren[childIndex].DesiredSize.Width; 988newRect.Height = InternalChildren[childIndex].DesiredSize.Height;
src\Framework\System\Windows\Controls\UIElementCollection.cs (1)
470return this[index];
src\Framework\System\Windows\Controls\VirtualizingPanel.cs (1)
428IHierarchicalVirtualizationAndScrollInfo virtualizingChild = children[i] as IHierarchicalVirtualizationAndScrollInfo;
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (10)
1153FrameworkElement fe = children[i] as FrameworkElement; 4209IHierarchicalVirtualizationAndScrollInfo virtualizingChild = children[i] as IHierarchicalVirtualizationAndScrollInfo; 8631if (isRecycled && visualTreeIndex < children.Count && children[visualTreeIndex] == container) 8645Debug.Assert(children[visualTreeIndex] != null, "MoveVisualChild interprets a null destination as 'move to end'"); 8646children.MoveVisualChild(container, children[visualTreeIndex]); 9049_realizedChildren.Add(children[i]); 9096Debug.Assert(_realizedChildren[i] == children[i], "Realized and visual children must match"); 9122if (children[i] == child) 9148visualChild = children[i]; 9294return NotifyCleanupItem(children[childIndex], itemsControl);
src\Framework\System\Windows\Controls\WrapPanel.cs (3)
241UIElement child = children[i] as UIElement; 301UIElement child = children[i] as UIElement; 350UIElement child = children[i] as UIElement;
src\Framework\System\Windows\Documents\FixedPage.cs (4)
747return _uiElementCollection[index]; 877uiElement = elementCollection[i]; 921DependencyObject element = this.Children[currentLevelIndex]; 931element = ((Canvas)element).Children[currentLevelIndex];
src\Framework\System\Windows\Input\KeyboardNavigation.cs (1)
650Control control = (Control)_canvasChildren[i];
System.Activities.Presentation (12)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\FlagPanel.cs (3)
83if (str.Contains((panel.Children[this.index] as CheckBox).Content.ToString().ToUpperInvariant())) 99if ((i != this.index && ((bool)(panel.Children[i] as CheckBox).IsChecked)) || 106str += (panel.Children[i] as CheckBox).Content.ToString();
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\PropertyPanel.cs (4)
187UIElement child = InternalChildren[i]; 191InternalChildren[i].Measure(new Size(lastChildWidth, availableSize.Height)); 195InternalChildren[i].Measure(new Size(availableWidth, availableSize.Height)); 221UIElement child = InternalChildren[i];
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\FreeFormPanel.cs (5)
331Size size = Children[i].DesiredSize; 332if (Children[i].GetType() == typeof(Connector)) 334((UIElement)Children[i]).Arrange(new Rect(pt, size)); 338pt = FreeFormPanel.GetLocation(Children[i]); 339((UIElement)Children[i]).Arrange(new Rect(pt, size));