GetNext Method
Gets the next element in the specified navigation direction.
Definition
Namespace: Avalonia.Input
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
(bool handled, IInputElement next) GetNext(
IInputElement element,
NavigationDirection direction
)
Function GetNext (
element As IInputElement,
direction As NavigationDirection
) As (handled As Boolean, next As IInputElement)
abstract GetNext :
element : IInputElement *
direction : NavigationDirection -> ValueTuple<bool, IInputElement>
Parameters
- IInputElement
- The element being navigated from.
- NavigationDirection
- The navigation direction.
Return Value
ValueTuple(Boolean, 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.
See Also
Reference
ICustomKeyboardNavigation Interface
Avalonia.Input Namespace