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)
347
UIElement uiElement = this.InkCanvas.Children
[
x];
System\Windows\Controls\DataGrid.cs (2)
6393
row = itemsHost.Children
[
i] as DataGridRow;
6442
row = itemsHost.Children
[
i] as DataGridRow;
System\Windows\Controls\DataGridCellsPanel.cs (6)
649
Debug.Assert(child == InternalChildren
[
childIndex], "Wrong child was generated");
701
if (isRecycled && visualTreeIndex < children.Count && children
[
visualTreeIndex] == container)
715
Debug.Assert(children
[
visualTreeIndex] != null, "MoveVisualChild interprets a null destination as 'move to end'");
770
if (children
[
i] == child)
1177
visualChild = children
[
i];
1959
_realizedChildren.Add(children
[
i]);
System\Windows\Controls\DockPanel.cs (2)
210
UIElement child = children
[
i];
275
UIElement child = children
[
i];
System\Windows\Controls\Grid.cs (12)
365
UIElement child = children
[
i];
663
UIElement child = children
[
i];
682
UIElement cell = children
[
currentCell];
885
UIElement child = children
[
i];
1204
double oldWidth = children
[
i].DesiredSize.Width;
1208
hasDesiredSizeUChanged |= !DoubleUtil.AreClose(oldWidth, children
[
i].DesiredSize.Width);
1214
DefinitionsU[PrivateCells[i].ColumnIndex].UpdateMinSize(Math.Min(children
[
i].DesiredSize.Width, DefinitionsU[PrivateCells[i].ColumnIndex].UserMaxSize));
1223
children
[
i].DesiredSize.Width);
1231
DefinitionsV[PrivateCells[i].RowIndex].UpdateMinSize(Math.Min(children
[
i].DesiredSize.Height, DefinitionsV[PrivateCells[i].RowIndex].UserMaxSize));
1240
children
[
i].DesiredSize.Height);
1347
UIElement child = InternalChildren
[
cell];
3899
_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)];
997
header = (GridViewColumnHeader)InternalChildren
[
index];
1300
GridViewColumnHeader header = children
[
visualIndex] as GridViewColumnHeader;
1311
header = children
[
i] as GridViewColumnHeader;
1433
GridViewColumnHeader header = children
[
i] as GridViewColumnHeader;
1606
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]];
647
cell = (FrameworkElement)children
[
i];
System\Windows\Controls\InkCanvas.cs (1)
2735
uiElementArray[i] = uiElementCollection
[
i];
System\Windows\Controls\ItemsControl.cs (1)
2472
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;
1013
FrameworkElement daytitle = _monthView.Children
[
childIndex] as FrameworkElement;
1043
CalendarDayButton childButton = _monthView.Children
[
childIndex] as CalendarDayButton;
1156
CalendarDayButton childButton = _monthView.Children
[
childIndex] as CalendarDayButton;
1175
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))
294
UIElement child = (UIElement)children
[
i];
366
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)
582
UIElement child = children
[
i];
635
if (fHorizontal) { projectedLogicalVisibleSpace -= children
[
firstViewport - 1].DesiredSize.Width; }
636
else { projectedLogicalVisibleSpace -= children
[
firstViewport - 1].DesiredSize.Height; }
742
UIElement child = (UIElement)children
[
i];
834
? ((UIElement)children
[
i]).DesiredSize.Width
835
: ((UIElement)children
[
i]).DesiredSize.Height;
940
Size childDesiredSize = InternalChildren
[
childIndex].DesiredSize;
947
childDesiredSize = InternalChildren
[
i].DesiredSize;
966
newRect.Width = InternalChildren
[
childIndex].DesiredSize.Width;
972
newRect.Height = InternalChildren
[
childIndex].DesiredSize.Height;
System\Windows\Controls\UIElementCollection.cs (1)
460
return this
[
index];
System\Windows\Controls\VirtualizingPanel.cs (1)
373
IHierarchicalVirtualizationAndScrollInfo virtualizingChild = children
[
i] as IHierarchicalVirtualizationAndScrollInfo;
System\Windows\Controls\VirtualizingStackPanel.cs (11)
1180
FrameworkElement fe = children
[
i] as FrameworkElement;
4266
IHierarchicalVirtualizationAndScrollInfo virtualizingChild = children
[
i] as IHierarchicalVirtualizationAndScrollInfo;
8763
if (isRecycled && visualTreeIndex < children.Count && children
[
visualTreeIndex] == container)
8777
Debug.Assert(children
[
visualTreeIndex] != null, "MoveVisualChild interprets a null destination as 'move to end'");
8778
children.MoveVisualChild(container, children
[
visualTreeIndex]);
8923
Debug.Assert(child == InternalChildren
[
childIndex], "Wrong child was generated");
9181
_realizedChildren.Add(children
[
i]);
9227
Debug.Assert(_realizedChildren[i] == children
[
i], "Realized and visual children must match");
9251
if (children
[
i] == child)
9277
visualChild = children
[
i];
9422
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)
710
return _uiElementCollection
[
index];
840
uiElement = elementCollection
[
i];
884
DependencyObject element = this.Children
[
currentLevelIndex];
894
element = ((Canvas)element).Children
[
currentLevelIndex];
System\Windows\Input\KeyboardNavigation.cs (1)
594
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))
277
UIElement child = (UIElement)children
[
i];
314
Debug.Assert(object.ReferenceEquals(InternalChildren
[
j], GeneratedChildren[j]));
315
UIElement currentChild = InternalChildren
[
j];
328
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));