InputPointerSource.PointerCaptureLost 事件
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
發生于與這個 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)
事件類型
備註
這個事件是針對相關聯指標引發的最終事件。
指標可能會因為使用者互動而遺失擷取,或是因為您以程式設計方式擷取另一個指標,或刻意釋放目前的指標擷取。