Share via


CoreInkIndependentInputSource.PointerPressing Event

Definition

Occurs as a pointer registers contact within the hit test, or bounding, area of the InkCanvas associated with the InkPresenter object. This can be when a mouse button is pressed or the digitizer surface is touched by a finger or pen.

// Register
event_token PointerPressing(TypedEventHandler<CoreInkIndependentInputSource, PointerEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
CoreInkIndependentInputSource::PointerPressing_revoker PointerPressing(auto_revoke_t, TypedEventHandler<CoreInkIndependentInputSource, PointerEventArgs const&> const& handler) const;
public event TypedEventHandler<CoreInkIndependentInputSource,PointerEventArgs> PointerPressing;
function onPointerPressing(eventArgs) { /* Your code */ }
coreInkIndependentInputSource.addEventListener("pointerpressing", onPointerPressing);
coreInkIndependentInputSource.removeEventListener("pointerpressing", onPointerPressing);
- or -
coreInkIndependentInputSource.onpointerpressing = onPointerPressing;
Public Custom Event PointerPressing As TypedEventHandler(Of CoreInkIndependentInputSource, PointerEventArgs) 

Event Type

Applies to

See also