ICoreWindow.PointerPressed Event

Definition

Occurs when a mouse button is clicked, or the digitizer surface has been touched by a finger or pen, within the bounding rectangle of the app.

An interaction session starts when a single contact is detected and ends when that contact, and all subsequent contacts in the same session, are no longer detected.

This event is fired for the first contact detected in the interaction session. Details for all other concurrent contact pointers are exposed through a PointerPointProperties object (obtained by getting the Properties property from a PointerPoint object).

// Register
event_token PointerPressed(TypedEventHandler<CoreWindow, PointerEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
ICoreWindow::PointerPressed_revoker PointerPressed(auto_revoke_t, TypedEventHandler<CoreWindow, PointerEventArgs const&> const& handler) const;
event TypedEventHandler<CoreWindow,PointerEventArgs> PointerPressed;
function onPointerPressed(eventArgs) { /* Your code */ }
iCoreWindow.addEventListener("pointerpressed", onPointerPressed);
iCoreWindow.removeEventListener("pointerpressed", onPointerPressed);
- or -
iCoreWindow.onpointerpressed = onPointerPressed;
Event PointerPressed As TypedEventHandler(Of CoreWindow, PointerEventArgs) 

Event Type

Applies to

See also