다음을 통해 공유


FocusNavigationEvent object

Note

The features described in this document are no longer being maintained. For more information on the new WebView2 control, see Introduction to Microsoft Edge WebView2 (Preview).

The dispatched object from NavigateFocus/DepartingFocus containing the NavigationReason and location.

Methods

requestFocus

Called to move focus from the app to the webview.

Parameters

This method does not have parameters.

Return value

This method does not return a value.

Properties

Enumerated type NavigationReason, either "left", "up", "right", or "down".

This property is read-only.

var navigationReason = FocusNavigationEvent.navigationReason;

Property value

Type: NavigationReason

originHeight

The origin height location of the element to be given focus.

This property is read-only.

var originWoriginHeightidth = FocusNavigationEvent.originHeight;

Property value

Type: float

originLeft

The origin left location of the element to be given focus.

This property is read-only.

var originLeft = FocusNavigationEvent.originLeft;

Property value

Type: float

originTop

The origin top location of the element to be given focus.

This property is read-only.

var originTop = FocusNavigationEvent.originTop;

Property value

Type: float

originWidth

The origin width location of the element to be given focus.

This property is read-only.

var originWidth = FocusNavigationEvent.originWidth;

Property value

Type: float