Syncfusion.SfMenu.UWP
The element.

GetVisualAncestorsAndSelf Method

Helps to find the ancestor of a given element in the visual tree or find the object itself if it matches.
Syntax
[Extension()]
public static IEnumerable<DependencyObject> GetVisualAncestorsAndSelf( 
   DependencyObject element
)

Parameters

element
The element.

Return Value

The visual tree ancestors of an element and the element itself.
Exceptions
ExceptionDescription
element is null.
AssemblyVersion

Syncfusion.SfMenu.UWP: 16.4460.0.52

See Also