51 references to GetChildrenCount
PresentationCore (6)
System\Windows\Automation\Peers\UIElement3DAutomationPeer.cs (1)
95int count = VisualTreeHelper.GetChildrenCount(parent);
System\Windows\Automation\Peers\UIElementAutomationPeer.cs (1)
114int count = VisualTreeHelper.GetChildrenCount(parent);
System\Windows\Diagnostics\VisualDiagnostics.cs (1)
182int count = VisualTreeHelper.GetChildrenCount(parent);
System\Windows\Input\Stylus\Pointer\PointerStylusPlugInManager.cs (1)
128int count = VisualTreeHelper.GetChildrenCount(commonParent);
System\Windows\Input\Stylus\Wisp\PenContexts.cs (1)
336int count = VisualTreeHelper.GetChildrenCount(commonParent);
System\Windows\InterOp\HwndTarget.cs (1)
1820int childrenCount = VisualTreeHelper.GetChildrenCount(d);
PresentationFramework (36)
MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (1)
208int count = VisualTreeHelper.GetChildrenCount(dpv);
MS\Internal\Annotations\Component\AdornerPresentationContext.cs (2)
398int count = VisualTreeHelper.GetChildrenCount(_adornerLayer); 457int count = VisualTreeHelper.GetChildrenCount(adornerLayer);
MS\Internal\Documents\ContentHostHelper.cs (1)
101if (VisualTreeHelper.GetChildrenCount(textView.RenderScope) > 0)
MS\Internal\Helper.cs (4)
529UIElement child = (VisualTreeHelper.GetChildrenCount(element) > 0) ? VisualTreeHelper.GetChild(element, 0) as UIElement : null; 546UIElement child = (VisualTreeHelper.GetChildrenCount(element) > 0) ? VisualTreeHelper.GetChild(element, 0) as UIElement : null; 1282int count = VisualTreeHelper.GetChildrenCount(searchStart); 1402int childrenCount = VisualTreeHelper.GetChildrenCount(d);
MS\Internal\LayoutDump.cs (4)
337int count = VisualTreeHelper.GetChildrenCount(visualParent); 422int count = VisualTreeHelper.GetChildrenCount(visual); 837int count1 = VisualTreeHelper.GetChildrenCount(visual); 841int count2 = VisualTreeHelper.GetChildrenCount(rowVisual);
MS\Internal\PtsHost\TextParaClient.cs (2)
2273int count = VisualTreeHelper.GetChildrenCount(Visual); 2303int count = VisualTreeHelper.GetChildrenCount(Visual);
System\Windows\Annotations\AnnotationDocumentPaginator.cs (1)
397Invariant.Assert(VisualTreeHelper.GetChildrenCount(dpv) == 1, "DocumentPageView has no visual children.");
System\Windows\Automation\Peers\TreeViewItemAutomationPeer.cs (1)
95int count = VisualTreeHelper.GetChildrenCount(parent);
System\Windows\BroadcastEventHelper.cs (1)
589int count = VisualTreeHelper.GetChildrenCount(v);
System\Windows\Controls\ComboBox.cs (1)
1616int count = VisualTreeHelper.GetChildrenCount(visual);
System\Windows\Controls\DataGridHelper.cs (1)
219int childCount = VisualTreeHelper.GetChildrenCount(element);
System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
1297if (RenderScope != null && VisualTreeHelper.GetChildrenCount(RenderScope) > 0)
System\Windows\Controls\ItemsPresenter.cs (1)
50if (panel == null || VisualTreeHelper.GetChildrenCount(panel) > 0)
System\Windows\Controls\Primitives\BulletDecorator.cs (4)
392if (VisualTreeHelper.GetChildrenCount(cp) == 1) 402VisualTreeHelper.GetChildrenCount(accessText) == 1) 415VisualTreeHelper.GetChildrenCount(accessText) == 1) 433if(VisualTreeHelper.GetChildrenCount(cp) == 1)
System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (1)
145UIElement child = (VisualTreeHelper.GetChildrenCount(this) > 0) ? VisualTreeHelper.GetChild(this, 0) as UIElement : null;
System\Windows\Controls\Primitives\DataGridDetailsPresenter.cs (1)
146var childrenCount = VisualTreeHelper.GetChildrenCount(this);
System\Windows\Controls\Primitives\ScrollContentPresenter.cs (1)
758int count = VisualTreeHelper.GetChildrenCount(itemsPresenter);
System\Windows\Controls\ToolBar.cs (1)
660newFocusElement = VisualTreeHelper.GetChild(itemsHost, VisualTreeHelper.GetChildrenCount(itemsHost)-1) as UIElement;
System\Windows\Controls\TreeViewItem.cs (1)
842int count = VisualTreeHelper.GetChildrenCount(parent);
System\Windows\Documents\RubberbandSelector.cs (1)
253int count = VisualTreeHelper.GetChildrenCount(old);
System\Windows\Input\KeyboardNavigation.cs (4)
1498int count = VisualTreeHelper.GetChildrenCount(parentAsUIElement); 1559int count = VisualTreeHelper.GetChildrenCount(parentAsUIElement); 1672int count = VisualTreeHelper.GetChildrenCount(elementAsVisual); 1737int count = VisualTreeHelper.GetChildrenCount(elementAsVisual);
System\Windows\Shell\WindowChromeWorker.cs (1)
297if (VisualTreeHelper.GetChildrenCount(_window) == 0)
ReachFramework (3)
Serialization\Manager\ReachVisualSerializer.cs (1)
254if (index < VisualTreeHelper.GetChildrenCount(nodeVisual))
Serialization\VisualTreeFlattener.cs (2)
445if ((VisualTreeHelper.GetChildrenCount(visual) == 0) && (Complexity(content) <= 1)) 652int count = VisualTreeHelper.GetChildrenCount(visual);
System.Windows.Controls.Ribbon (5)
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (1)
857int count = VisualTreeHelper.GetChildrenCount(visual);
Microsoft\Windows\Controls\Ribbon\RibbonContentPresenter.cs (1)
115if (VisualTreeHelper.GetChildrenCount(this) > 0)
Microsoft\Windows\Controls\Ribbon\RibbonControl.cs (1)
214if (VisualTreeHelper.GetChildrenCount(_partContentPresenter) > 0 &&
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (1)
2953int childCount = VisualTreeHelper.GetChildrenCount(element);
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)
689int childCount = VisualTreeHelper.GetChildrenCount(element);