共用方式為


CoreWindow.PointerCaptureLost 事件

定義

當指標移至另一個應用程式時發生。 此事件會在 PointerExited 之後引發,而且是應用程式針對此指標接收的最終事件。

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

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

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

事件類型

實作

適用於

另請參閱