CountLogical(ILogical) Method

Definition

Assembly HeadlessTestingFramework.dll

Counts all logical descendants of a specific type.

public static int CountLogical<T>(this ILogical root)
    where T : class

Type parameters

T
The type to count.

Parameters

root
Avalonia.LogicalTree.ILogical

The root logical to search from.

Returns

Int32
The number of descendants of the specified type.