Gets an element's first child of a given type.
'Declaration
Public Shared Function GetFirstChildOfType(Of As System.Windows.DependencyObject)( _
ByVal As System.Windows.FrameworkElement _
) As
public static GetFirstChildOfType<>(
System.Windows.FrameworkElement
)
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).