[]
        
(Showing Draft Content)

C1.Util.Util.GetFirstChildOfType

GetFirstChildOfType Method

GetFirstChildOfType<T>(FrameworkElement)

Gets an element's first child of a given type.

Declaration
public static T GetFirstChildOfType<T>(FrameworkElement e) where T : DependencyObject
Parameters
Type Name Description
FrameworkElement e

Parent element.

Returns
Type Description
T

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

Type Parameters
Name Description
T

Type to look for.