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

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

Parameters

e
Parent element.

Type Parameters

T
Type to look for.

Return Value

Element's first child of type T (or the element itself if it is of type T).
See Also

Reference

Util Class
Util Members