VisualTreeAssistFindChildTChildType Method DW.WPFToolkit Documentation
Searches for a specific child element by its type.

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

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

Parameters

item
Type: System.WindowsDependencyObject
The control where the search is start from. If this its null the default(TChildType) will returned.

Type Parameters

TChildType
The type of the child control to search for.

Return Value

Type: TChildType
The found child control if any; otherwise default(TChildType). Its also default(TParentType) if the passed item is null.
See Also

Reference