Click or drag to resize

UIHelperFindVisualParentT Method

Finds a parent of a given item on 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 FindVisualParent<T>(
	DependencyObject child
)
where T : DependencyObject

Parameters

child
Type: System.WindowsDependencyObject
A direct or indirect child of the queried item.

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 reference is being returned.
See Also