VisualTreeAssistGetChildrenCountTChildType Method DW.WPFToolkit Documentation
Gets the amount of child elements by their type.

Namespace: DW.WPFToolkit.Helpers
Assembly: DW.WPFToolkit (in DW.WPFToolkit.dll) Version: 5.6.0.0
Syntax

C#
public static int GetChildrenCount<TChildType>(
	DependencyObject item
)
where TChildType : DependencyObject

Parameters

item
Type: System.WindowsDependencyObject
The control where the search is start from. If this its null this method returns 0.

Type Parameters

TChildType
The type of the child control to check for.

Return Value

Type: Int32
The amount of child controls by the specific type if any; otherwise 0. It is also 0 if the passed item is null.
See Also

Reference