VisualTreeAssistFindNamedChildTChildType Method (DependencyObject, String)DW.WPFToolkit Documentation
Searches for a specific child element by its type and name

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

C#
public static TChildType FindNamedChild<TChildType>(
	DependencyObject item,
	string name
)
where TChildType : DependencyObject

Parameters

item
Type: System.WindowsDependencyObject
The control where the search is start from. If this its null this method returns default(TChildType).
name
Type: SystemString
The name of the child control to search for if any; otherwise default(TChildType). If this its null, empty or just whitespaces this method returns default(TChildType).

Type Parameters

TChildType
The type of the child control to search for.

Return Value

Type: TChildType
The found child control if any; otehrwise default(TChildType). It is also default(TChildType) if the item passed is null or the passed name is null, empty or just whitespaces.
See Also

Reference