CoreWindow.PointerRoutedTo 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 captured pointer input previously being delivered to another object, transitions to being delivered to this object.
// 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
CoreWindow::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
Implements
Windows requirements
Device family |
Windows 10 (introduced in 10.0.10586.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v2.0)
|