VisualTree.FindDescendants<T>(DependencyObject) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
IEnumerable<T>
Descendant controls or empty if not found.