FindByClass(Visual, String) Method

Definition

Assembly HeadlessTestingFramework.dll

Finds controls by CSS classes.

public static IEnumerable<T> FindByClass<T>(this Visual root, string className)
    where T : StyledElement

Type parameters

T
The type of controls to find.

Parameters

root
Avalonia.Visual

The root visual to search from.

className
String

The CSS class name to search for.

Returns

IEnumerable<T>
All controls with the specified CSS class.