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)
- C#
- VB
- F#
public enum XYFocusNavigationStrategy
Public Enumeration XYFocusNavigationStrategy
type XYFocusNavigationStrategy
Members
Auto | 0 | Indicates that navigation strategy is inherited from the element's ancestors. If all ancestors have a value of Auto, the fallback strategy is Projection. |
Projection | 1 | Indicates that focus moves to the first element encountered when projecting the edge of the currently focused element in the direction of navigation. |
NavigationDirectionDistance | 2 | Indicates that focus moves to the element closest to the axis of the navigation direction. |
RectilinearDistance | 3 | Indicates that focus moves to the closest element based on the shortest 2D distance (Manhattan metric). |