Count(Visual) Method

Definition

Assembly HeadlessTestingFramework.dll

Counts all descendants of a specific type.

public static int Count<T>(this Visual root)
    where T : class

Type parameters

T
The type to count.

Parameters

root
Avalonia.Visual

The root visual to search from.

Returns

Int32
The number of descendants of the specified type.