ContainsLogical(ILogical) Method

Definition

Assembly HeadlessTestingFramework.dll

Checks if a logical contains a descendant of a specific type.

public static bool ContainsLogical<T>(this ILogical root)
    where T : class

Type parameters

T
The type to check for.

Parameters

root
Avalonia.LogicalTree.ILogical

The root logical to search from.

Returns

Boolean
True if a descendant of the specified type exists.