CoreInkIndependentInputSource.PointerPressing 事件

定义

当指针在与 InkPresenter 对象关联的 InkCanvas 的命中测试或边界区域中注册接触时发生。 这可以是按下鼠标按钮或数字化器表面被手指或笔触摸时。

// 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) 

事件类型

适用于

另请参阅