Udostępnij za pośrednictwem


GettingFocusEventArgs.Direction Property

Definition

Gets the direction that focus moved from element to element within the app UI.

public:
 property FocusNavigationDirection Direction { FocusNavigationDirection get(); };
FocusNavigationDirection Direction();
public FocusNavigationDirection Direction { get; }
var focusNavigationDirection = gettingFocusEventArgs.direction;
Public ReadOnly Property Direction As FocusNavigationDirection

Property Value

The direction of focus movement.

Remarks

FocusNavigationDirection.Previous and FocusNavigationDirection.Next cannot be used with FindNextElementOptions. Only FocusNavigationDirection.Up, FocusNavigationDirection.Down, FocusNavigationDirection.Left, or FocusNavigationDirection.Right are valid.

Applies to

See also