Skip to main content

IsDirectional Method

Checks whether a NavigationDirection represents a directional movement.

Definition​

Namespace: Avalonia.Input
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public static bool IsDirectional(
this NavigationDirection direction
)

Parameters​

  NavigationDirection
The direction.

Return Value​

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

Usage Note​

In Visual Basic and C#, you can call this method as an instance method on any object of type NavigationDirection. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also​

Reference​

NavigationDirectionExtensions Class
Avalonia.Input Namespace