InputFocusNavigationHost.DepartFocusRequested Event
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.
Occurs when InputFocusController.DepartFocus(Microsoft.UI.Input.FocusNavigationRequest) is called on a Content.ContentIsland corresponding to the associated ContentSiteBridge.
// Register
event_token DepartFocusRequested(TypedEventHandler<InputFocusNavigationHost, FocusNavigationRequestEventArgs const&> const& handler) const;
// Revoke with event_token
void DepartFocusRequested(event_token const* cookie) const;
// Revoke with event_revoker
InputFocusNavigationHost::DepartFocusRequested_revoker DepartFocusRequested(auto_revoke_t, TypedEventHandler<InputFocusNavigationHost, FocusNavigationRequestEventArgs const&> const& handler) const;
public event TypedEventHandler<InputFocusNavigationHost,FocusNavigationRequestEventArgs> DepartFocusRequested;
function onDepartFocusRequested(eventArgs) { /* Your code */ }
inputFocusNavigationHost.addEventListener("departfocusrequested", onDepartFocusRequested);
inputFocusNavigationHost.removeEventListener("departfocusrequested", onDepartFocusRequested);
- or -
inputFocusNavigationHost.ondepartfocusrequested = onDepartFocusRequested;
Public Custom Event DepartFocusRequested As TypedEventHandler(Of InputFocusNavigationHost, FocusNavigationRequestEventArgs)