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