InkUnprocessedInput.PointerPressed 事件

定义

当指针在 InkCanvas 控件的命中测试或边界区域内注册接触时发生。 这可以是按下鼠标按钮或用手指或笔触摸数字化器表面时。

// Register
event_token PointerPressed(TypedEventHandler<InkUnprocessedInput, PointerEventArgs const&> const& handler) const;

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

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

事件类型

适用于

另请参阅