InkUnprocessedInput.PointerReleased 事件

定义

InkCanvas 控件的命中测试或边界区域内提升或释放与 PointerPressed 事件关联的指针时,可能发生。

不保证 PointerReleased 与 PointerPressed 协同发生,因为 PointerLostPointerExited 可能会改为发生。 应处理可以结束 PointerPressed 的所有事件。

PointerReleased 可能不会发生的原因包括:

  • 特定硬件处理输入的方式的差异
  • 从其他指针进行编程指针捕获
  • 用于更改显示区域关系的用户操作,例如更改分辨率或监视器设置
  • 输入交互,例如触笔触摸与上一个触摸操作相同的表面
// 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) 

事件类型

适用于

另请参阅