InputPointerSource.PointerCaptureLost 事件

定义

当与此 InputPointerSource 接触的指针移动到另一个输入目标时发生。

// Register
event_token PointerCaptureLost(TypedEventHandler<InputPointerSource, PointerEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
InputPointerSource::PointerCaptureLost_revoker PointerCaptureLost(auto_revoke_t, TypedEventHandler<InputPointerSource, PointerEventArgs const&> const& handler) const;
public event TypedEventHandler<InputPointerSource,PointerEventArgs> PointerCaptureLost;
function onPointerCaptureLost(eventArgs) { /* Your code */ }
inputPointerSource.addEventListener("pointercapturelost", onPointerCaptureLost);
inputPointerSource.removeEventListener("pointercapturelost", onPointerCaptureLost);
- or -
inputPointerSource.onpointercapturelost = onPointerCaptureLost;
Public Custom Event PointerCaptureLost As TypedEventHandler(Of InputPointerSource, PointerEventArgs) 

事件类型

注解

此事件是为关联的指针引发的最终事件。

指针可能会因为用户交互或你以编程方式捕获另一个指针或故意释放当前指针捕获而丢失捕获。

适用于