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