51 references to GetChildrenCount
PresentationCore (6)
System\Windows\Automation\Peers\UIElement3DAutomationPeer.cs (1)
87int count = VisualTreeHelper.GetChildrenCount(parent);
System\Windows\Automation\Peers\UIElementAutomationPeer.cs (1)
105int count = VisualTreeHelper.GetChildrenCount(parent);
System\Windows\Diagnostics\VisualDiagnostics.cs (1)
177int count = VisualTreeHelper.GetChildrenCount(parent);
System\Windows\Input\Stylus\Pointer\PointerStylusPlugInManager.cs (1)
116int count = VisualTreeHelper.GetChildrenCount(commonParent);
System\Windows\Input\Stylus\Wisp\PenContexts.cs (1)
314int count = VisualTreeHelper.GetChildrenCount(commonParent);
System\Windows\InterOp\HwndTarget.cs (1)
1807int childrenCount = VisualTreeHelper.GetChildrenCount(d);
PresentationFramework (36)
MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (1)
199int count = VisualTreeHelper.GetChildrenCount(dpv);
MS\Internal\Annotations\Component\AdornerPresentationContext.cs (2)
394int count = VisualTreeHelper.GetChildrenCount(_adornerLayer); 453int count = VisualTreeHelper.GetChildrenCount(adornerLayer);
MS\Internal\Documents\ContentHostHelper.cs (1)
98if (VisualTreeHelper.GetChildrenCount(textView.RenderScope) > 0)
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; 1273int count = VisualTreeHelper.GetChildrenCount(searchStart); 1393int childrenCount = VisualTreeHelper.GetChildrenCount(d);
MS\Internal\LayoutDump.cs (4)
334int count = VisualTreeHelper.GetChildrenCount(visualParent); 419int count = VisualTreeHelper.GetChildrenCount(visual); 834int count1 = VisualTreeHelper.GetChildrenCount(visual); 838int count2 = VisualTreeHelper.GetChildrenCount(rowVisual);
MS\Internal\PtsHost\TextParaClient.cs (2)
2267int count = VisualTreeHelper.GetChildrenCount(Visual); 2297int count = VisualTreeHelper.GetChildrenCount(Visual);
System\Windows\Annotations\AnnotationDocumentPaginator.cs (1)
392Invariant.Assert(VisualTreeHelper.GetChildrenCount(dpv) == 1, "DocumentPageView has no visual children.");
System\Windows\Automation\Peers\TreeViewItemAutomationPeer.cs (1)
83int count = VisualTreeHelper.GetChildrenCount(parent);
System\Windows\BroadcastEventHelper.cs (1)
583int count = VisualTreeHelper.GetChildrenCount(v);
System\Windows\Controls\ComboBox.cs (1)
1606int count = VisualTreeHelper.GetChildrenCount(visual);
System\Windows\Controls\DataGridHelper.cs (1)
213int childCount = VisualTreeHelper.GetChildrenCount(element);
System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
1294if (RenderScope != null && VisualTreeHelper.GetChildrenCount(RenderScope) > 0)
System\Windows\Controls\ItemsPresenter.cs (1)
46if (panel == null || VisualTreeHelper.GetChildrenCount(panel) > 0)
System\Windows\Controls\Primitives\BulletDecorator.cs (4)
386if (VisualTreeHelper.GetChildrenCount(cp) == 1) 396VisualTreeHelper.GetChildrenCount(accessText) == 1) 409VisualTreeHelper.GetChildrenCount(accessText) == 1) 427if(VisualTreeHelper.GetChildrenCount(cp) == 1)
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)
142var childrenCount = VisualTreeHelper.GetChildrenCount(this);
System\Windows\Controls\Primitives\ScrollContentPresenter.cs (1)
748int count = VisualTreeHelper.GetChildrenCount(itemsPresenter);
System\Windows\Controls\ToolBar.cs (1)
651newFocusElement = VisualTreeHelper.GetChild(itemsHost, VisualTreeHelper.GetChildrenCount(itemsHost)-1) as UIElement;
System\Windows\Controls\TreeViewItem.cs (1)
838int count = VisualTreeHelper.GetChildrenCount(parent);
System\Windows\Documents\RubberbandSelector.cs (1)
243int count = VisualTreeHelper.GetChildrenCount(old);
System\Windows\Input\KeyboardNavigation.cs (4)
1488int count = VisualTreeHelper.GetChildrenCount(parentAsUIElement); 1549int count = VisualTreeHelper.GetChildrenCount(parentAsUIElement); 1662int count = VisualTreeHelper.GetChildrenCount(elementAsVisual); 1727int count = VisualTreeHelper.GetChildrenCount(elementAsVisual);
System\Windows\Shell\WindowChromeWorker.cs (1)
292if (VisualTreeHelper.GetChildrenCount(_window) == 0)
ReachFramework (3)
Serialization\Manager\ReachVisualSerializer.cs (1)
241if (index < VisualTreeHelper.GetChildrenCount(nodeVisual))
Serialization\VisualTreeFlattener.cs (2)
438if ((VisualTreeHelper.GetChildrenCount(visual) == 0) && (Complexity(content) <= 1)) 645int count = VisualTreeHelper.GetChildrenCount(visual);
System.Windows.Controls.Ribbon (5)
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (1)
855int count = VisualTreeHelper.GetChildrenCount(visual);
Microsoft\Windows\Controls\Ribbon\RibbonContentPresenter.cs (1)
110if (VisualTreeHelper.GetChildrenCount(this) > 0)
Microsoft\Windows\Controls\Ribbon\RibbonControl.cs (1)
210if (VisualTreeHelper.GetChildrenCount(_partContentPresenter) > 0 &&
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (1)
2948int childCount = VisualTreeHelper.GetChildrenCount(element);
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)
686int childCount = VisualTreeHelper.GetChildrenCount(element);