CoreWindow.PointerRoutedTo Event

Definition

Occurs on the process not currently receiving input, but designated to begin receiving input from another process.

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

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

// Revoke with event_revoker
PointerRoutedTo_revoker PointerRoutedTo(auto_revoke_t, TypedEventHandler<ICorePointerRedirector, PointerEventArgs const &> const& handler) const;
public event TypedEventHandler<ICorePointerRedirector,PointerEventArgs> PointerRoutedTo;
function onPointerRoutedTo(eventArgs) { /* Your code */ }
coreWindow.addEventListener("pointerroutedto", onPointerRoutedTo);
coreWindow.removeEventListener("pointerroutedto", onPointerRoutedTo);
- or -
coreWindow.onpointerroutedto = onPointerRoutedTo;
Public Custom Event PointerRoutedTo As TypedEventHandler(Of ICorePointerRedirector, PointerEventArgs) Implements PointerRoutedTo

Event Type

TypedEventHandler<ICorePointerRedirector,PointerEventArgs>

Implements

Windows 10 requirements

Device family
Windows 10 (introduced in 10.0.10586.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v2.0)

Remarks

This event is not fired on a PointerPressed event.

Applies to