Table of Contents

Class NavigationDirectionExtensions

Namespace
Avalonia.Input
Assembly
Avalonia.Base.dll
public static class NavigationDirectionExtensions
Inheritance
NavigationDirectionExtensions
Inherited Members

Methods

IsDirectional(NavigationDirection)

Checks whether a NavigationDirection represents a directional movement.

public static bool IsDirectional(this NavigationDirection direction)

Parameters

direction NavigationDirection

The direction.

Returns

bool

True if the direction represents a directional movement (any value except Next and Previous); otherwise false.

IsTab(NavigationDirection)

Checks whether a NavigationDirection represents a tab movement.

public static bool IsTab(this NavigationDirection direction)

Parameters

direction NavigationDirection

The direction.

Returns

bool

True if the direction represents a tab movement (Next or Previous); otherwise false.

ToNavigationDirection(Key, KeyModifiers)

Converts a keypress into a NavigationDirection.

public static NavigationDirection? ToNavigationDirection(this Key key, KeyModifiers modifiers = KeyModifiers.None)

Parameters

key Key

The key.

modifiers KeyModifiers

The keyboard modifiers.

Returns

NavigationDirection?

A NavigationDirection if the keypress represents a navigation keypress.