FindAll(Visual, Boolean) Method

Definition

Assembly HeadlessTestingFramework.dll

Finds all descendants of a specific type in the visual tree.

public static IEnumerable<T> FindAll<T>(this Visual root, bool includeSelf = false)
    where T : class

Type parameters

T
The type of controls to find.

Parameters

root
Avalonia.Visual

The root visual to search from.

includeSelf
Boolean

Whether to include the root in the search.

Returns

IEnumerable<T>
All descendants of the specified type.