ICorePointerRedirector.PointerRoutedTo Event

Definition

Occurs on the process not currently receiving pointer input when ongoing pointer input, for an existing pointer ID, transitions from one process to another.

An implementation of the ICorePointerRedirector interface is provided by the CoreWindow class (@"Windows.UI.Core.CoreWindow.PointerRoutedTo?text=PointerRoutedTo" ).

// 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
ICorePointerRedirector::PointerRoutedTo_revoker PointerRoutedTo(auto_revoke_t, TypedEventHandler<ICorePointerRedirector, PointerEventArgs const&> const& handler) const;
event TypedEventHandler<ICorePointerRedirector,PointerEventArgs> PointerRoutedTo;
function onPointerRoutedTo(eventArgs) { /* Your code */ }
iCorePointerRedirector.addEventListener("pointerroutedto", onPointerRoutedTo);
iCorePointerRedirector.removeEventListener("pointerroutedto", onPointerRoutedTo);
- or -
iCorePointerRedirector.onpointerroutedto = onPointerRoutedTo;
Event PointerRoutedTo As TypedEventHandler(Of ICorePointerRedirector, PointerEventArgs) 

Event Type

TypedEventHandler<ICorePointerRedirector,PointerEventArgs>

Remarks

This event is not fired on a PointerPressed event for a new pointer ID on a different process.

A PointerPressed event is not fired on the current process if a PointerRoutedTo event is fired first.

Applies to