53 references to GetChild
Microsoft.VisualStudio.LanguageServices (2)
DocumentOutline\DocumentOutlineView.xaml.cs (2)
328
var container = VisualTreeHelper.
GetChild
(item, 0);
329
var border = VisualTreeHelper.
GetChild
(container, 1);
PresentationCore (6)
System\Windows\Automation\Peers\UIElement3DAutomationPeer.cs (1)
98
DependencyObject child = VisualTreeHelper.
GetChild
(parent, i);
System\Windows\Automation\Peers\UIElementAutomationPeer.cs (1)
117
DependencyObject child = VisualTreeHelper.
GetChild
(parent, i);
System\Windows\Diagnostics\VisualDiagnostics.cs (1)
185
DependencyObject obj = VisualTreeHelper.
GetChild
(parent, i);
System\Windows\Input\Stylus\Pointer\PointerStylusPlugInManager.cs (1)
131
DependencyObject child = VisualTreeHelper.
GetChild
(commonParent, j);
System\Windows\Input\Stylus\Wisp\PenContexts.cs (1)
339
DependencyObject child = VisualTreeHelper.
GetChild
(commonParent, j);
System\Windows\InterOp\HwndTarget.cs (1)
1823
DependencyObject child = VisualTreeHelper.
GetChild
(d, i);
PresentationFramework (37)
MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (1)
210
return VisualTreeHelper.
GetChild
(dpv, 0) as DocumentPageHost;
MS\Internal\Annotations\Component\AdornerPresentationContext.cs (2)
404
DependencyObject child = VisualTreeHelper.
GetChild
(_adornerLayer, i);
463
DependencyObject child = VisualTreeHelper.
GetChild
(adornerLayer, i);
MS\Internal\Documents\ContentHostHelper.cs (1)
103
ich = VisualTreeHelper.
GetChild
(textView.RenderScope, 0) as IContentHost;
MS\Internal\Helper.cs (4)
529
UIElement child = (VisualTreeHelper.GetChildrenCount(element) > 0) ? VisualTreeHelper.
GetChild
(element, 0) as UIElement : null;
546
UIElement child = (VisualTreeHelper.GetChildrenCount(element) > 0) ? VisualTreeHelper.
GetChild
(element, 0) as UIElement : null;
1285
descendant = VisualTreeHelper.
GetChild
(searchStart, i) as FrameworkElement;
1405
DependencyObject child = VisualTreeHelper.
GetChild
(d, i);
MS\Internal\PtsHost\TextParaClient.cs (5)
2286
visual = VisualTreeHelper.
GetChild
(Visual, visualIndex) as LineVisual;
2288
Invariant.Assert(visual != null || VisualTreeHelper.
GetChild
(Visual, visualIndex) == null);
2309
if(VisualTreeHelper.
GetChild
(Visual, visualIndex) is ParagraphElementVisual)
2315
visual = VisualTreeHelper.
GetChild
(temp, visualIndex) as LineVisual;
2317
Invariant.Assert(visual != null || VisualTreeHelper.
GetChild
(temp, visualIndex) == null);
System\Windows\Annotations\AnnotationDocumentPaginator.cs (1)
398
DependencyObject firstElement = VisualTreeHelper.
GetChild
(dpv, 0);
System\Windows\Automation\Peers\TreeViewItemAutomationPeer.cs (1)
98
DependencyObject child = VisualTreeHelper.
GetChild
(parent, i);
System\Windows\BroadcastEventHelper.cs (1)
593
FrameworkElement child = VisualTreeHelper.
GetChild
(v, i) as FrameworkElement;
System\Windows\Controls\ComboBox.cs (1)
1619
strValue += ExtractString((DependencyObject)(VisualTreeHelper.
GetChild
(visual, i)));
System\Windows\Controls\DataGridHelper.cs (1)
222
DependencyObject child = VisualTreeHelper.
GetChild
(element, i) as DependencyObject;
System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
1299
ich = VisualTreeHelper.
GetChild
(RenderScope, 0) as IContentHost;
System\Windows\Controls\Primitives\BulletDecorator.cs (4)
394
DependencyObject child = VisualTreeHelper.
GetChild
(cp, 0);
405
textBlock = VisualTreeHelper.
GetChild
(accessText, 0) as TextBlock;
418
return VisualTreeHelper.
GetChild
(accessText, 0) as TextBlock;
434
return VisualTreeHelper.
GetChild
(cp, 0) as FlowDocumentScrollViewer;
System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (1)
145
UIElement child = (VisualTreeHelper.GetChildrenCount(this) > 0) ? VisualTreeHelper.
GetChild
(this, 0) as UIElement : null;
System\Windows\Controls\Primitives\DataGridDetailsPresenter.cs (1)
149
return VisualTreeHelper.
GetChild
(this, 0) as FrameworkElement;
System\Windows\Controls\Primitives\ScrollContentPresenter.cs (1)
760
si = VisualTreeHelper.
GetChild
(itemsPresenter, 0) as IScrollInfo;
System\Windows\Controls\ToolBar.cs (2)
657
newFocusElement = VisualTreeHelper.
GetChild
(itemsHost, 0) as UIElement;
660
newFocusElement = VisualTreeHelper.
GetChild
(itemsHost, VisualTreeHelper.GetChildrenCount(itemsHost)-1) as UIElement;
System\Windows\Controls\TreeViewItem.cs (2)
845
if (VisualTreeHelper.
GetChild
(parent, index) == toggleButton)
847
header = VisualTreeHelper.
GetChild
(parent, index+1) as FrameworkElement;
System\Windows\Input\KeyboardNavigation.cs (5)
1502
DependencyObject vchild = VisualTreeHelper.
GetChild
(parentAsUIElement, i);
1564
DependencyObject vchild = VisualTreeHelper.
GetChild
(parentAsUIElement, i);
1571
DependencyObject visual = VisualTreeHelper.
GetChild
(parentAsUIElement, i);
1675
DependencyObject visual = VisualTreeHelper.
GetChild
(elementAsVisual, i);
1740
DependencyObject visual = VisualTreeHelper.
GetChild
(elementAsVisual, i);
System\Windows\Shell\WindowChromeWorker.cs (2)
307
FrameworkElement rootElement = (FrameworkElement)VisualTreeHelper.
GetChild
(_window, 0);
1136
FrameworkElement rootElement = (FrameworkElement)VisualTreeHelper.
GetChild
(_window, 0);
ReachFramework (2)
Serialization\Manager\ReachVisualSerializer.cs (1)
258
child = (Visual) VisualTreeHelper.
GetChild
(nodeVisual, index);
Serialization\VisualTreeFlattener.cs (1)
657
VisualWalk((Visual) VisualTreeHelper.
GetChild
(visual,i));
System.Windows.Controls.Ribbon (5)
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (1)
860
strValue += ExtractString((DependencyObject)(VisualTreeHelper.
GetChild
(visual, i)));
Microsoft\Windows\Controls\Ribbon\RibbonContentPresenter.cs (1)
117
_templateRoot = VisualTreeHelper.
GetChild
(this, 0) as FrameworkElement;
Microsoft\Windows\Controls\Ribbon\RibbonControl.cs (1)
215
VisualTreeHelper.
GetChild
(_partContentPresenter, 0) is RibbonGroup)
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (1)
2957
DependencyObject child = VisualTreeHelper.
GetChild
(element, i);
Microsoft\Windows\Controls\Ribbon\RibbonToolTip.cs (1)
323
(VisualTreeHelper.GetChildrenCount(ribbonGroup) > 0 && toolTip.PlacementTarget == VisualTreeHelper.
GetChild
(ribbonGroup, 0)));
WindowsFormsIntegration (1)
System\Windows\Integration\ElementHost.cs (1)
693
SetChildElementsIsImeEnabled(VisualTreeHelper.
GetChild
(element, childIndex), isEnabled);