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
Public Shared Function ParentOfType(Of T As DependencyObject) (
element As DependencyObject
) As T
public:
generic<typename T>
where T : DependencyObject
static T ParentOfType(
DependencyObject^ element
)
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:
TThe DependencyObject of type T, which is the parent of the UIElement element
See Also