VisualTree.FindDescendant Method

Definition

Overloads

FindDescendant(DependencyObject, Type)

Find first descendant control of a specified type.

FindDescendant<T>(DependencyObject)

Find first descendant control of a specified type.

FindDescendant(DependencyObject, Type)

Find first descendant control of a specified type.

public static object FindDescendant (this Windows.UI.Xaml.DependencyObject element, Type type);
static member FindDescendant : Windows.UI.Xaml.DependencyObject * Type -> obj
<Extension()>
Public Function FindDescendant (element As DependencyObject, type As Type) As Object

Parameters

element
Windows.UI.Xaml.DependencyObject

Parent element.

type
Type

Type of descendant.

Returns

Descendant control or null if not found.

Applies to

FindDescendant<T>(DependencyObject)

Find first descendant control of a specified type.

public static T FindDescendant<T> (this Windows.UI.Xaml.DependencyObject element) where T : Windows.UI.Xaml.DependencyObject;
static member FindDescendant : Windows.UI.Xaml.DependencyObject -> 'T (requires 'T :> Windows.UI.Xaml.DependencyObject)
<Extension()>
Public Function FindDescendant(Of T As DependencyObject) (element As DependencyObject) As T

Type Parameters

T

Type to search for.

Parameters

element
Windows.UI.Xaml.DependencyObject

Parent element.

Returns

T

Descendant control or null if not found.

Applies to