Click or drag to resize

UIHelperFindChildT Method (DependencyObject, String)

Finds a Child of a given item in the visual tree.

Namespace:  SharpCharts.Base.Common
Assembly:  SharpCharts.Base (in SharpCharts.Base.dll) Version: 1.0.0.42 (1.0.0.42)
Syntax
C#
public static T FindChild<T>(
	DependencyObject parent,
	string childName
)
where T : DependencyObject

Parameters

parent
Type: System.WindowsDependencyObject
A direct parent of the queried item.
childName
Type: SystemString
x:Name or Name of child.

Type Parameters

T
The type of the queried item.

Return Value

Type: T
The first parent item that matches the submitted type parameter. If not matching item can be found, a null parent is being returned.
See Also