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) Version: 11.3.999
public enum XYFocusNavigationStrategy

Members

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

See Also