Click or drag to resize

UIHelperParentOfTypeT Method

Gets a Parent of specific type of an Element

Namespace:  Hummingbird.UI
Assembly:  Hummingbird.UI (in Hummingbird.UI.dll) Version: 1.1.0.0
Syntax
public static T ParentOfType<T>(
	DependencyObject element
)
where T : DependencyObject

Parameters

element
Type: System.WindowsDependencyObject
The element of which the parent will be found

Type Parameters

T
Type of the parent to find

Return Value

Type: T
The DependencyObject of type T, which is the parent of the UIElement element
See Also