FindFocused(Visual) Method

Definition

Assembly HeadlessTestingFramework.dll

Finds all focused controls (should typically be 0 or 1).

public static IEnumerable<T> FindFocused<T>(this Visual root)
    where T : InputElement

Type parameters

T
The type of controls to find.

Parameters

root
Avalonia.Visual

The root visual to search from.

Returns

IEnumerable<T>
All focused controls of the specified type.