FindFocusable(Visual) Method

Definition

Assembly HeadlessTestingFramework.dll

Finds all focusable controls of a specific type.

public static IEnumerable<T> FindFocusable<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 focusable controls of the specified type.