VisualTree.FindAscendants(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 visual ascendants for the element.
public static System.Collections.Generic.IEnumerable<Windows.UI.Xaml.DependencyObject> FindAscendants (this Windows.UI.Xaml.DependencyObject element);
static member FindAscendants : Windows.UI.Xaml.DependencyObject -> seq<Windows.UI.Xaml.DependencyObject>
<Extension()>
Public Iterator Function FindAscendants (element As DependencyObject) As IEnumerable(Of DependencyObject)
Parameters
- element
- Windows.UI.Xaml.DependencyObject
Child element.
Returns
IEnumerable<Windows.UI.Xaml.DependencyObject>
A collection of parent elements or null if none found.