InputFocusController.DepartFocus(FocusNavigationRequest) Method

Definition

Raises the InputFocusNavigationHost.DepartFocusRequested event for the Content.ContentIsland host.

For example, the user has tabbed through all of the tabbable elements within the ContentIsland and now focus should move away from the Island to something else in the hosting application.

public:
 virtual FocusNavigationResult DepartFocus(FocusNavigationRequest ^ request) = DepartFocus;
FocusNavigationResult DepartFocus(FocusNavigationRequest const& request);
public FocusNavigationResult DepartFocus(FocusNavigationRequest request);
function departFocus(request)
Public Function DepartFocus (request As FocusNavigationRequest) As FocusNavigationResult

Parameters

request
FocusNavigationRequest

Details of the focus navigation event.

Returns

The possible results of a focus navigation event, determined by the Content.ContentIsland host.

Remarks

The FocusNavigationResult value returned by this method is determined by the Content.ContentIsland host, and is not a result of focus actually moving. Check if focus was actually moved by using either the HasFocus property or by listening for the LostFocus event.

Applies to