VisualTree.FindDescendants<T>(DependencyObject) Method

Definition

Find all descendant controls of the specified type.

public static System.Collections.Generic.IEnumerable<T> FindDescendants<T> (this Windows.UI.Xaml.DependencyObject element) where T : Windows.UI.Xaml.DependencyObject;
static member FindDescendants : Windows.UI.Xaml.DependencyObject -> seq<'T (requires 'T :> Windows.UI.Xaml.DependencyObject)> (requires 'T :> Windows.UI.Xaml.DependencyObject)
<Extension()>
Public Iterator Function FindDescendants(Of T As DependencyObject) (element As DependencyObject) As IEnumerable(Of T)

Type Parameters

T

Type to search for.

Parameters

element
Windows.UI.Xaml.DependencyObject

Parent element.

Returns

Descendant controls or empty if not found.

Applies to