HasLogicalAncestor(ILogical) Method

Definition

Assembly HeadlessTestingFramework.dll

Checks if the logical has an ancestor of a specific type.

public static bool HasLogicalAncestor<T>(this ILogical logical)
    where T : class

Type parameters

T
The type of ancestor to check for.

Parameters

logical
Avalonia.LogicalTree.ILogical

The logical to check.

Returns

Boolean
True if an ancestor of the specified type exists.