VisualTreeAssistGetChildrenTChildType Method DW.WPFToolkit Documentation
Gets all child elements with a specific type.

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

C#
public static List<TChildType> GetChildren<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 an empty list.

Type Parameters

TChildType
The type of the child control to search for.

Return Value

Type: ListTChildType
A list of found child controls. This is empty if no control has been found.
See Also

Reference