Condividi tramite


CoreWindow.PointerRoutedTo Evento

Definizione

Si verifica quando l'input del puntatore acquisito in precedenza viene recapitato a un altro oggetto, passa al recapito a questo oggetto.

// 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

Tipo evento

Implementazioni

Requisiti Windows

Famiglia di dispositivi
Windows 10 (è stato introdotto in 10.0.10586.0)
API contract
Windows.Foundation.UniversalApiContract (è stato introdotto in v2.0)

Si applica a

Vedi anche