VisualExtensions.

GetVisualAncestors(IVisual) Method

Summary

Enumerates the ancestors of an IVisual in the visual tree.
Namespace
Avalonia.VisualTree
Containing Type
VisualExtensions

Syntax

public static IEnumerable<IVisual> GetVisualAncestors(this IVisual visual)

Parameters

Name Type Description
visual IVisual The visual.

Return Value

Type Description
IEnumerable<IVisual> The visual's ancestors.