CoreInkIndependentInputSource.PointerLost 事件

定义

在与 InkPresenter 对象关联的 InkCanvas 的命中测试或边界区域中或上方不再检测到指针时发生。

通常,如果触点移动到 InkCanvas 控件之外,或者该接触被另一个元素捕获,指针将丢失。

// Register
event_token PointerLost(TypedEventHandler<CoreInkIndependentInputSource, PointerEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
CoreInkIndependentInputSource::PointerLost_revoker PointerLost(auto_revoke_t, TypedEventHandler<CoreInkIndependentInputSource, PointerEventArgs const&> const& handler) const;
public event TypedEventHandler<CoreInkIndependentInputSource,PointerEventArgs> PointerLost;
function onPointerLost(eventArgs) { /* Your code */ }
coreInkIndependentInputSource.addEventListener("pointerlost", onPointerLost);
coreInkIndependentInputSource.removeEventListener("pointerlost", onPointerLost);
- or -
coreInkIndependentInputSource.onpointerlost = onPointerLost;
Public Custom Event PointerLost As TypedEventHandler(Of CoreInkIndependentInputSource, PointerEventArgs) 

事件类型

适用于

另请参阅