共用方式為


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) 

事件類型

適用於

另請參閱