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