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