GetAncestors(Visual) Method

Definition

Assembly HeadlessTestingFramework.dll

Gets all ancestors of a specific type.

public static IEnumerable<T> GetAncestors<T>(this Visual visual)
    where T : class

Type parameters

T
The type of ancestors to find.

Parameters

visual
Avalonia.Visual

The visual to start from.

Returns

IEnumerable<T>
All ancestors of the specified type.