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

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

C#
public static DependencyObject FindNamedChild(
	DependencyObject item,
	string name
)

Parameters

item
Type: System.WindowsDependencyObject
The control where the search is start from. If this its null this method returns null.
name
Type: SystemString
The name of the child control to search for. If this its null, empty or just whitespaces this method returns null.

Return Value

Type: DependencyObject
The found child control if any; otherwise null. It is also null if the passed item is null or the passed name is null, empty or just whitespaces.
See Also

Reference