InkUnprocessedInput.PointerReleased Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- Pen and stylus interactions
- Get started: Support ink in your UWP app
- Ink analysis sample (basic) (C#)
- Ink handwriting recognition sample (C#)
- Save and load ink strokes from an Ink Serialized Format (ISF) file
- Save and load ink strokes from the clipboard
- Ink toolbar location and orientation sample (basic)
- Ink toolbar location and orientation sample (dynamic)
- Coloring book sample
- Family notes sample
- Inking sample (JavaScript)
- Simple inking sample (C#/C++)
- Complex inking sample (C++)
- Ink analysis sample