VisualExtensions.

GetSelfAndVisualAncestors(IVisual) Method

Summary

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

Syntax

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

Parameters

Name Type Description
visual IVisual The visual.

Return Value

Type Description
IEnumerable<IVisual> The visual and its ancestors.