Delen via


CoreWindow.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
CoreWindow::PointerPressed_revoker PointerPressed(auto_revoke_t, TypedEventHandler<CoreWindow, PointerEventArgs const&> const& handler) const;
public event TypedEventHandler<CoreWindow,PointerEventArgs> PointerPressed;
function onPointerPressed(eventArgs) { /* Your code */ }
coreWindow.addEventListener("pointerpressed", onPointerPressed);
coreWindow.removeEventListener("pointerpressed", onPointerPressed);
- or -
coreWindow.onpointerpressed = onPointerPressed;
Public Custom Event PointerPressed As TypedEventHandler(Of CoreWindow, PointerEventArgs) Implements PointerPressed

Event Type

Implements

Applies to

See also