GetLogicalAncestors(ILogical) Method

Definition

Assembly HeadlessTestingFramework.dll

Gets all logical ancestors of a specific type.

public static IEnumerable<T> GetLogicalAncestors<T>(this ILogical logical)
    where T : class

Type parameters

T
The type of ancestors to find.

Parameters

logical
Avalonia.LogicalTree.ILogical

The logical to start from.

Returns

IEnumerable<T>
All ancestors of the specified type.