51 references to GetChildrenCount
PresentationCore (4)
Core\CSharp\System\Windows\Automation\Peers\UIElement3DAutomationPeer.cs (1)
101
int count = VisualTreeHelper.
GetChildrenCount
(parent);
Core\CSharp\System\Windows\Automation\Peers\UIElementAutomationPeer.cs (1)
125
int count = VisualTreeHelper.
GetChildrenCount
(parent);
Core\CSharp\System\Windows\Diagnostics\VisualDiagnostics.cs (1)
195
int count = VisualTreeHelper.
GetChildrenCount
(parent);
Core\CSharp\System\Windows\Interop\HwndTarget.cs (1)
1981
int childrenCount = VisualTreeHelper.
GetChildrenCount
(d);
PresentationFramework (36)
src\Framework\MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (1)
214
int count = VisualTreeHelper.
GetChildrenCount
(dpv);
src\Framework\MS\Internal\Annotations\Component\AdornerPresentationContext.cs (2)
414
int count = VisualTreeHelper.
GetChildrenCount
(_adornerLayer);
473
int count = VisualTreeHelper.
GetChildrenCount
(adornerLayer);
src\Framework\MS\Internal\Documents\ContentHostHelper.cs (1)
103
if (VisualTreeHelper.
GetChildrenCount
(textView.RenderScope) > 0)
src\Framework\MS\Internal\Helper.cs (4)
543
UIElement child = (VisualTreeHelper.
GetChildrenCount
(element) > 0) ? VisualTreeHelper.GetChild(element, 0) as UIElement : null;
560
UIElement child = (VisualTreeHelper.
GetChildrenCount
(element) > 0) ? VisualTreeHelper.GetChild(element, 0) as UIElement : null;
1298
int count = VisualTreeHelper.
GetChildrenCount
(searchStart);
1418
int childrenCount = VisualTreeHelper.
GetChildrenCount
(d);
src\Framework\MS\Internal\LayoutDump.cs (4)
339
int count = VisualTreeHelper.
GetChildrenCount
(visualParent);
425
int count = VisualTreeHelper.
GetChildrenCount
(visual);
840
int count1 = VisualTreeHelper.
GetChildrenCount
(visual);
844
int count2 = VisualTreeHelper.
GetChildrenCount
(rowVisual);
src\Framework\MS\Internal\PtsHost\TextParaClient.cs (2)
2487
int count = VisualTreeHelper.
GetChildrenCount
(Visual);
2517
int count = VisualTreeHelper.
GetChildrenCount
(Visual);
src\Framework\System\Windows\Annotations\AnnotationDocumentPaginator.cs (1)
408
Invariant.Assert(VisualTreeHelper.
GetChildrenCount
(dpv) == 1, "DocumentPageView has no visual children.");
src\Framework\System\Windows\Automation\Peers\TreeViewItemAutomationPeer.cs (1)
91
int count = VisualTreeHelper.
GetChildrenCount
(parent);
src\Framework\System\Windows\BroadcastEventHelper.cs (1)
587
int count = VisualTreeHelper.
GetChildrenCount
(v);
src\Framework\System\Windows\Controls\ComboBox.cs (1)
1619
int count = VisualTreeHelper.
GetChildrenCount
(visual);
src\Framework\System\Windows\Controls\DataGridHelper.cs (1)
220
int childCount = VisualTreeHelper.
GetChildrenCount
(element);
src\Framework\System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
1305
if (RenderScope != null && VisualTreeHelper.
GetChildrenCount
(RenderScope) > 0)
src\Framework\System\Windows\Controls\ItemsPresenter.cs (1)
52
if (panel == null || VisualTreeHelper.
GetChildrenCount
(panel) > 0)
src\Framework\System\Windows\Controls\Primitives\BulletDecorator.cs (4)
393
if (VisualTreeHelper.
GetChildrenCount
(cp) == 1)
403
VisualTreeHelper.
GetChildrenCount
(accessText) == 1)
416
VisualTreeHelper.
GetChildrenCount
(accessText) == 1)
434
if(VisualTreeHelper.
GetChildrenCount
(cp) == 1)
src\Framework\System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (1)
145
UIElement child = (VisualTreeHelper.
GetChildrenCount
(this) > 0) ? VisualTreeHelper.GetChild(this, 0) as UIElement : null;
src\Framework\System\Windows\Controls\Primitives\DataGridDetailsPresenter.cs (1)
146
var childrenCount = VisualTreeHelper.
GetChildrenCount
(this);
src\Framework\System\Windows\Controls\Primitives\ScrollContentPresenter.cs (1)
764
int count = VisualTreeHelper.
GetChildrenCount
(itemsPresenter);
src\Framework\System\Windows\Controls\ToolBar.cs (1)
670
newFocusElement = VisualTreeHelper.GetChild(itemsHost, VisualTreeHelper.
GetChildrenCount
(itemsHost)-1) as UIElement;
src\Framework\System\Windows\Controls\TreeViewItem.cs (1)
841
int count = VisualTreeHelper.
GetChildrenCount
(parent);
src\Framework\System\Windows\Documents\RubberbandSelector.cs (1)
350
int count = VisualTreeHelper.
GetChildrenCount
(old);
src\Framework\System\Windows\Input\KeyboardNavigation.cs (4)
1584
int count = VisualTreeHelper.
GetChildrenCount
(parentAsUIElement);
1645
int count = VisualTreeHelper.
GetChildrenCount
(parentAsUIElement);
1758
int count = VisualTreeHelper.
GetChildrenCount
(elementAsVisual);
1823
int count = VisualTreeHelper.
GetChildrenCount
(elementAsVisual);
src\Framework\System\Windows\Shell\WindowChromeWorker.cs (1)
390
if (VisualTreeHelper.
GetChildrenCount
(_window) == 0)
System.Activities.Presentation (11)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\FlagEditor.xaml.cs (2)
105
if (comboBoxItem != null && VisualTreeHelper.
GetChildrenCount
(comboBoxItem) > 0)
109
if (panel != null && VisualTreeHelper.
GetChildrenCount
(panel) > 0)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Selection\PropertySelection.cs (2)
502
neighbor = FindChildSelectionStop<T>(element, 0, VisualTreeHelper.
GetChildrenCount
(element) - 1, direction, maxSearchDepth, MatchDirection.Down);
650
int grandChildrenCount = VisualTreeHelper.
GetChildrenCount
(child);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\VisualTreeUtils.cs (5)
64
int childCount = VisualTreeHelper.
GetChildrenCount
(container);
106
int childrenCount = VisualTreeHelper.
GetChildrenCount
(element);
165
int childCount = VisualTreeHelper.
GetChildrenCount
(reference);
234
childrenCount = VisualTreeHelper.
GetChildrenCount
(parent);
314
totalChildCount = VisualTreeHelper.
GetChildrenCount
(currentObject.Visual);
System.Activities.Presentation\System\Activities\Presentation\View\ActivityTypeResolver.xaml.cs (1)
253
for (int i = 0; i < VisualTreeHelper.
GetChildrenCount
(tree); i++)
System.Activities.Presentation\System\Activities\Presentation\View\DataGridHelper.cs (1)
1060
int numVisuals = VisualTreeHelper.
GetChildrenCount
(parent);