Skip to main content

XYFocusNavigationStrategy Enumeration

Specifies the disambiguation strategy used for navigating between multiple candidate targets using DownNavigationStrategyProperty, LeftNavigationStrategyProperty, RightNavigationStrategyProperty, and UpNavigationStrategyProperty.

Definition

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

public enum XYFocusNavigationStrategy
View Source

Members

Auto0Indicates that navigation strategy is inherited from the element's ancestors. If all ancestors have a value of Auto, the fallback strategy is Projection.
Projection1Indicates that focus moves to the first element encountered when projecting the edge of the currently focused element in the direction of navigation.
NavigationDirectionDistance2Indicates that focus moves to the element closest to the axis of the navigation direction.
RectilinearDistance3Indicates that focus moves to the closest element based on the shortest 2D distance (Manhattan metric).

See Also

Reference

Avalonia.Input Namespace