Dela via


InkUnprocessedInput.PointerReleased Event

Definition

Can occur when a pointer associated with a PointerPressed event is lifted, or released, while within the hit test, or bounding, area of an InkCanvas control.

PointerReleased is not guaranteed to occur in concert with PointerPressed, as PointerLost or PointerExited might occur instead. You should handle all events that can conclude PointerPressed.

Some reasons why PointerReleased might not occur include:

  • Differences in how specific hardware handles input
  • A programmatic pointer capture from a different pointer
  • User actions that change the relationship of the display area, such as changing resolution or monitor settings
  • Input interactions such as a stylus touching the same surface as a previous touch action
// Register
event_token PointerReleased(TypedEventHandler<InkUnprocessedInput, PointerEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
InkUnprocessedInput::PointerReleased_revoker PointerReleased(auto_revoke_t, TypedEventHandler<InkUnprocessedInput, PointerEventArgs const&> const& handler) const;
public event TypedEventHandler<InkUnprocessedInput,PointerEventArgs> PointerReleased;
function onPointerReleased(eventArgs) { /* Your code */ }
inkUnprocessedInput.addEventListener("pointerreleased", onPointerReleased);
inkUnprocessedInput.removeEventListener("pointerreleased", onPointerReleased);
- or -
inkUnprocessedInput.onpointerreleased = onPointerReleased;
Public Custom Event PointerReleased As TypedEventHandler(Of InkUnprocessedInput, PointerEventArgs) 

Event Type

Applies to

See also