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