53 references to GetChild
Microsoft.VisualStudio.LanguageServices (2)
DocumentOutline\DocumentOutlineView.xaml.cs (2)
333var container = VisualTreeHelper.GetChild(item, 0); 334var border = VisualTreeHelper.GetChild(container, 1);
PresentationCore (6)
System\Windows\Automation\Peers\UIElement3DAutomationPeer.cs (1)
90DependencyObject child = VisualTreeHelper.GetChild(parent, i);
System\Windows\Automation\Peers\UIElementAutomationPeer.cs (1)
108DependencyObject child = VisualTreeHelper.GetChild(parent, i);
System\Windows\Diagnostics\VisualDiagnostics.cs (1)
180DependencyObject obj = VisualTreeHelper.GetChild(parent, i);
System\Windows\Input\Stylus\Pointer\PointerStylusPlugInManager.cs (1)
119DependencyObject child = VisualTreeHelper.GetChild(commonParent, j);
System\Windows\Input\Stylus\Wisp\PenContexts.cs (1)
317DependencyObject child = VisualTreeHelper.GetChild(commonParent, j);
System\Windows\InterOp\HwndTarget.cs (1)
1810DependencyObject child = VisualTreeHelper.GetChild(d, i);
PresentationFramework (37)
MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (1)
201return VisualTreeHelper.GetChild(dpv, 0) as DocumentPageHost;
MS\Internal\Annotations\Component\AdornerPresentationContext.cs (2)
400DependencyObject child = VisualTreeHelper.GetChild(_adornerLayer, i); 459DependencyObject child = VisualTreeHelper.GetChild(adornerLayer, i);
MS\Internal\Documents\ContentHostHelper.cs (1)
100ich = VisualTreeHelper.GetChild(textView.RenderScope, 0) as IContentHost;
MS\Internal\Helper.cs (4)
520UIElement child = (VisualTreeHelper.GetChildrenCount(element) > 0) ? VisualTreeHelper.GetChild(element, 0) as UIElement : null; 537UIElement child = (VisualTreeHelper.GetChildrenCount(element) > 0) ? VisualTreeHelper.GetChild(element, 0) as UIElement : null; 1276descendant = VisualTreeHelper.GetChild(searchStart, i) as FrameworkElement; 1396DependencyObject child = VisualTreeHelper.GetChild(d, i);
MS\Internal\PtsHost\TextParaClient.cs (5)
2280visual = VisualTreeHelper.GetChild(Visual, visualIndex) as LineVisual; 2282Invariant.Assert(visual != null || VisualTreeHelper.GetChild(Visual, visualIndex) == null); 2303if(VisualTreeHelper.GetChild(Visual, visualIndex) is ParagraphElementVisual) 2309visual = VisualTreeHelper.GetChild(temp, visualIndex) as LineVisual; 2311Invariant.Assert(visual != null || VisualTreeHelper.GetChild(temp, visualIndex) == null);
System\Windows\Annotations\AnnotationDocumentPaginator.cs (1)
393DependencyObject firstElement = VisualTreeHelper.GetChild(dpv, 0);
System\Windows\Automation\Peers\TreeViewItemAutomationPeer.cs (1)
86DependencyObject child = VisualTreeHelper.GetChild(parent, i);
System\Windows\BroadcastEventHelper.cs (1)
587FrameworkElement child = VisualTreeHelper.GetChild(v, i) as FrameworkElement;
System\Windows\Controls\ComboBox.cs (1)
1609strValue += ExtractString((DependencyObject)(VisualTreeHelper.GetChild(visual, i)));
System\Windows\Controls\DataGridHelper.cs (1)
216DependencyObject child = VisualTreeHelper.GetChild(element, i) as DependencyObject;
System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
1296ich = VisualTreeHelper.GetChild(RenderScope, 0) as IContentHost;
System\Windows\Controls\Primitives\BulletDecorator.cs (4)
388DependencyObject child = VisualTreeHelper.GetChild(cp, 0); 399textBlock = VisualTreeHelper.GetChild(accessText, 0) as TextBlock; 412return VisualTreeHelper.GetChild(accessText, 0) as TextBlock; 428return VisualTreeHelper.GetChild(cp, 0) as FlowDocumentScrollViewer;
System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (1)
140UIElement child = (VisualTreeHelper.GetChildrenCount(this) > 0) ? VisualTreeHelper.GetChild(this, 0) as UIElement : null;
System\Windows\Controls\Primitives\DataGridDetailsPresenter.cs (1)
145return VisualTreeHelper.GetChild(this, 0) as FrameworkElement;
System\Windows\Controls\Primitives\ScrollContentPresenter.cs (1)
750si = VisualTreeHelper.GetChild(itemsPresenter, 0) as IScrollInfo;
System\Windows\Controls\ToolBar.cs (2)
648newFocusElement = VisualTreeHelper.GetChild(itemsHost, 0) as UIElement; 651newFocusElement = VisualTreeHelper.GetChild(itemsHost, VisualTreeHelper.GetChildrenCount(itemsHost)-1) as UIElement;
System\Windows\Controls\TreeViewItem.cs (2)
841if (VisualTreeHelper.GetChild(parent, index) == toggleButton) 843header = VisualTreeHelper.GetChild(parent, index+1) as FrameworkElement;
System\Windows\Input\KeyboardNavigation.cs (5)
1492DependencyObject vchild = VisualTreeHelper.GetChild(parentAsUIElement, i); 1554DependencyObject vchild = VisualTreeHelper.GetChild(parentAsUIElement, i); 1561DependencyObject visual = VisualTreeHelper.GetChild(parentAsUIElement, i); 1665DependencyObject visual = VisualTreeHelper.GetChild(elementAsVisual, i); 1730DependencyObject visual = VisualTreeHelper.GetChild(elementAsVisual, i);
System\Windows\Shell\WindowChromeWorker.cs (2)
302FrameworkElement rootElement = (FrameworkElement)VisualTreeHelper.GetChild(_window, 0); 1131FrameworkElement rootElement = (FrameworkElement)VisualTreeHelper.GetChild(_window, 0);
ReachFramework (2)
Serialization\Manager\ReachVisualSerializer.cs (1)
245child = (Visual) VisualTreeHelper.GetChild(nodeVisual, index);
Serialization\VisualTreeFlattener.cs (1)
650VisualWalk((Visual) VisualTreeHelper.GetChild(visual,i));
System.Windows.Controls.Ribbon (5)
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (1)
858strValue += ExtractString((DependencyObject)(VisualTreeHelper.GetChild(visual, i)));
Microsoft\Windows\Controls\Ribbon\RibbonContentPresenter.cs (1)
112_templateRoot = VisualTreeHelper.GetChild(this, 0) as FrameworkElement;
Microsoft\Windows\Controls\Ribbon\RibbonControl.cs (1)
211VisualTreeHelper.GetChild(_partContentPresenter, 0) is RibbonGroup)
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (1)
2952DependencyObject child = VisualTreeHelper.GetChild(element, i);
Microsoft\Windows\Controls\Ribbon\RibbonToolTip.cs (1)
320(VisualTreeHelper.GetChildrenCount(ribbonGroup) > 0 && toolTip.PlacementTarget == VisualTreeHelper.GetChild(ribbonGroup, 0)));
WindowsFormsIntegration (1)
System\Windows\Integration\ElementHost.cs (1)
690SetChildElementsIsImeEnabled(VisualTreeHelper.GetChild(element, childIndex), isEnabled);