Share via


ICoreWindow.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
ICoreWindow::PointerCaptureLost_revoker PointerCaptureLost(auto_revoke_t, TypedEventHandler<CoreWindow, PointerEventArgs const&> const& handler) const;
event TypedEventHandler<CoreWindow,PointerEventArgs> PointerCaptureLost;
function onPointerCaptureLost(eventArgs) { /* Your code */ }
iCoreWindow.addEventListener("pointercapturelost", onPointerCaptureLost);
iCoreWindow.removeEventListener("pointercapturelost", onPointerCaptureLost);
- or -
iCoreWindow.onpointercapturelost = onPointerCaptureLost;
Event PointerCaptureLost As TypedEventHandler(Of CoreWindow, PointerEventArgs) 

事件類型

適用於

另請參閱