LosingFocusEventArgs.Direction Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 = losingFocusEventArgs.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.