CoreInkIndependentInputSource.PointerPressing 事件
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
發生于與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)