51 references to GetChild
PresentationCore (4)
Core\CSharp\System\Windows\Automation\Peers\UIElement3DAutomationPeer.cs (1)
104
DependencyObject child = VisualTreeHelper.
GetChild
(parent, i);
Core\CSharp\System\Windows\Automation\Peers\UIElementAutomationPeer.cs (1)
128
DependencyObject child = VisualTreeHelper.
GetChild
(parent, i);
Core\CSharp\System\Windows\Diagnostics\VisualDiagnostics.cs (1)
198
DependencyObject obj = VisualTreeHelper.
GetChild
(parent, i);
Core\CSharp\System\Windows\Interop\HwndTarget.cs (1)
1984
DependencyObject child = VisualTreeHelper.
GetChild
(d, i);
PresentationFramework (37)
src\Framework\MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (1)
216
return VisualTreeHelper.
GetChild
(dpv, 0) as DocumentPageHost;
src\Framework\MS\Internal\Annotations\Component\AdornerPresentationContext.cs (2)
420
DependencyObject child = VisualTreeHelper.
GetChild
(_adornerLayer, i);
479
DependencyObject child = VisualTreeHelper.
GetChild
(adornerLayer, i);
src\Framework\MS\Internal\Documents\ContentHostHelper.cs (1)
105
ich = VisualTreeHelper.
GetChild
(textView.RenderScope, 0) as IContentHost;
src\Framework\MS\Internal\Helper.cs (4)
543
UIElement child = (VisualTreeHelper.GetChildrenCount(element) > 0) ? VisualTreeHelper.
GetChild
(element, 0) as UIElement : null;
560
UIElement child = (VisualTreeHelper.GetChildrenCount(element) > 0) ? VisualTreeHelper.
GetChild
(element, 0) as UIElement : null;
1301
descendant = VisualTreeHelper.
GetChild
(searchStart, i) as FrameworkElement;
1421
DependencyObject child = VisualTreeHelper.
GetChild
(d, i);
src\Framework\MS\Internal\PtsHost\TextParaClient.cs (5)
2500
visual = VisualTreeHelper.
GetChild
(Visual, visualIndex) as LineVisual;
2502
Invariant.Assert(visual != null || VisualTreeHelper.
GetChild
(Visual, visualIndex) == null);
2523
if(VisualTreeHelper.
GetChild
(Visual, visualIndex) is ParagraphElementVisual)
2529
visual = VisualTreeHelper.
GetChild
(temp, visualIndex) as LineVisual;
2531
Invariant.Assert(visual != null || VisualTreeHelper.
GetChild
(temp, visualIndex) == null);
src\Framework\System\Windows\Annotations\AnnotationDocumentPaginator.cs (1)
409
DependencyObject firstElement = VisualTreeHelper.
GetChild
(dpv, 0);
src\Framework\System\Windows\Automation\Peers\TreeViewItemAutomationPeer.cs (1)
94
DependencyObject child = VisualTreeHelper.
GetChild
(parent, i);
src\Framework\System\Windows\BroadcastEventHelper.cs (1)
591
FrameworkElement child = VisualTreeHelper.
GetChild
(v, i) as FrameworkElement;
src\Framework\System\Windows\Controls\ComboBox.cs (1)
1622
strValue += ExtractString((DependencyObject)(VisualTreeHelper.
GetChild
(visual, i)));
src\Framework\System\Windows\Controls\DataGridHelper.cs (1)
223
DependencyObject child = VisualTreeHelper.
GetChild
(element, i) as DependencyObject;
src\Framework\System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
1307
ich = VisualTreeHelper.
GetChild
(RenderScope, 0) as IContentHost;
src\Framework\System\Windows\Controls\Primitives\BulletDecorator.cs (4)
395
DependencyObject child = VisualTreeHelper.
GetChild
(cp, 0);
406
textBlock = VisualTreeHelper.
GetChild
(accessText, 0) as TextBlock;
419
return VisualTreeHelper.
GetChild
(accessText, 0) as TextBlock;
435
return VisualTreeHelper.
GetChild
(cp, 0) as FlowDocumentScrollViewer;
src\Framework\System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (1)
145
UIElement child = (VisualTreeHelper.GetChildrenCount(this) > 0) ? VisualTreeHelper.
GetChild
(this, 0) as UIElement : null;
src\Framework\System\Windows\Controls\Primitives\DataGridDetailsPresenter.cs (1)
149
return VisualTreeHelper.
GetChild
(this, 0) as FrameworkElement;
src\Framework\System\Windows\Controls\Primitives\ScrollContentPresenter.cs (1)
766
si = VisualTreeHelper.
GetChild
(itemsPresenter, 0) as IScrollInfo;
src\Framework\System\Windows\Controls\ToolBar.cs (2)
667
newFocusElement = VisualTreeHelper.
GetChild
(itemsHost, 0) as UIElement;
670
newFocusElement = VisualTreeHelper.
GetChild
(itemsHost, VisualTreeHelper.GetChildrenCount(itemsHost)-1) as UIElement;
src\Framework\System\Windows\Controls\TreeViewItem.cs (2)
844
if (VisualTreeHelper.
GetChild
(parent, index) == toggleButton)
846
header = VisualTreeHelper.
GetChild
(parent, index+1) as FrameworkElement;
src\Framework\System\Windows\Input\KeyboardNavigation.cs (5)
1588
DependencyObject vchild = VisualTreeHelper.
GetChild
(parentAsUIElement, i);
1650
DependencyObject vchild = VisualTreeHelper.
GetChild
(parentAsUIElement, i);
1657
DependencyObject visual = VisualTreeHelper.
GetChild
(parentAsUIElement, i);
1761
DependencyObject visual = VisualTreeHelper.
GetChild
(elementAsVisual, i);
1826
DependencyObject visual = VisualTreeHelper.
GetChild
(elementAsVisual, i);
src\Framework\System\Windows\Shell\WindowChromeWorker.cs (2)
401
var rootElement = (FrameworkElement)VisualTreeHelper.
GetChild
(_window, 0);
1533
var rootElement = (FrameworkElement)VisualTreeHelper.
GetChild
(_window, 0);
System.Activities.Presentation (10)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\FlagEditor.xaml.cs (2)
108
StackPanel panel = VisualTreeHelper.
GetChild
(comboBoxItem, 0) as StackPanel;
112
UIElement item = VisualTreeHelper.
GetChild
(panel, 0) as UIElement;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Selection\PropertySelection.cs (1)
632
DependencyObject child = VisualTreeHelper.
GetChild
(parent, index);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\VisualTreeUtils.cs (5)
73
FrameworkElement child = VisualTreeHelper.
GetChild
(container, index) as FrameworkElement;
115
element = VisualTreeHelper.
GetChild
(element, 0);
168
T child = VisualTreeHelper.
GetChild
(reference, i) as T;
237
if (child.Equals(VisualTreeHelper.
GetChild
(parent, childIndex)))
317
child = VisualTreeHelper.
GetChild
(currentObject.Visual, i) as Visual;
System.Activities.Presentation\System\Activities\Presentation\View\ActivityTypeResolver.xaml.cs (1)
255
DependencyObject child = VisualTreeHelper.
GetChild
(tree, i);
System.Activities.Presentation\System\Activities\Presentation\View\DataGridHelper.cs (1)
1063
Visual v = (Visual)VisualTreeHelper.
GetChild
(parent, i);