ComponentOne FlexGrid for WPF and Silverlight
GetParentOfType<T> Method (Util)

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

Parameters

e
Child element.

Type Parameters

T
Type to look for.
See Also

Reference

Util Class
Util Members