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