Gets an element's first ancestor of a given type.
Syntax
'Declaration
Public Shared Function GetParentOfType(Of As System.Windows.DependencyObject)( _
ByVal As System.Windows.DependencyObject _
) As
public static GetParentOfType<>(
System.Windows.DependencyObject
)
where T: System.Windows.DependencyObject
Parameters
- e
- Child element.
Type Parameters
- T
- Type to look for.
See Also