Table of Contents

Interface IKeyboardNavigationHandler

Namespace
Avalonia.Input
Assembly
Avalonia.Base.dll

Defines the interface for classes that handle keyboard navigation for a window.

[Unstable]
public interface IKeyboardNavigationHandler

Methods

Move(IInputElement, NavigationDirection, KeyModifiers)

Moves the focus in the specified direction.

void Move(IInputElement element, NavigationDirection direction, KeyModifiers keyModifiers = KeyModifiers.None)

Parameters

element IInputElement

The current element.

direction NavigationDirection

The direction to move.

keyModifiers KeyModifiers

Any key modifiers active at the time of focus.

SetOwner(IInputRoot)

Sets the owner of the keyboard navigation handler.

[PrivateApi]
void SetOwner(IInputRoot owner)

Parameters

owner IInputRoot

The owner.

Remarks

This method can only be called once, typically by the owner itself on creation.