Dela via


CoreIndependentInputSource.PointerRoutedAway Event

Definition

Occurs on the input object receiving pointer input when the pointer is redirected to another input object (possibly in a separate process).

// Register
event_token PointerRoutedAway(TypedEventHandler<ICorePointerRedirector, PointerEventArgs const&> const& handler) const;

// Revoke with event_token
void PointerRoutedAway(event_token const* cookie) const;

// Revoke with event_revoker
CoreIndependentInputSource::PointerRoutedAway_revoker PointerRoutedAway(auto_revoke_t, TypedEventHandler<ICorePointerRedirector, PointerEventArgs const&> const& handler) const;
public event TypedEventHandler<ICorePointerRedirector,PointerEventArgs> PointerRoutedAway;
function onPointerRoutedAway(eventArgs) { /* Your code */ }
coreIndependentInputSource.addEventListener("pointerroutedaway", onPointerRoutedAway);
coreIndependentInputSource.removeEventListener("pointerroutedaway", onPointerRoutedAway);
- or -
coreIndependentInputSource.onpointerroutedaway = onPointerRoutedAway;
Public Custom Event PointerRoutedAway As TypedEventHandler(Of ICorePointerRedirector, PointerEventArgs) Implements PointerRoutedAway

Event Type

Implements

Windows requirements

Device family
Windows 11 (introduced in 10.0.22000.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v14.0)

Applies to