Skip to main content

ICustomKeyboardNavigation Interface

Definition

Namespace:Avalonia.Input
Assembly:Avalonia.Base
Package:Avalonia

Designates a control as handling its own keyboard navigation.

public interface ICustomKeyboardNavigation

Methods

NameDescription
GetNextGets the next element in the specified navigation direction.

GetNext Method

Gets the next element in the specified navigation direction.

public ValueTuple<bool, Avalonia.Input.IInputElement> GetNext(Avalonia.Input.IInputElement element, Avalonia.Input.NavigationDirection direction)

Parameters

element Avalonia.Input.IInputElement

The element being navigated from.

direction Avalonia.Input.NavigationDirection

The navigation direction.

Returns

ValueTuple<bool, Avalonia.Input.IInputElement>

A tuple consisting of:

  • A boolean indicating whether the request was handled. If false is returned then custom navigation will be ignored and default navigation will take place.
  • If handled is true: the next element in the navigation direction, or null if default navigation should continue outside the element.