FindLogicalByClass(ILogical, String) Method

Definition

Assembly HeadlessTestingFramework.dll

Finds logical controls by CSS classes.

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

Type parameters

T
The type of controls to find.

Parameters

root
Avalonia.LogicalTree.ILogical

The root logical to search from.

className
String

The CSS class name to search for.

Returns

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