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)