VisualTreeAssistFindNamedParent Method (DependencyObject, String)DW.WPFToolkit Documentation
Searches for a parent control by its name.

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

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

Parameters

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

Return Value

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

Reference