共用方式為


InputPointerSource.PointerPressed 事件

定義

發生于按下滑鼠按鍵,或手指或手寫筆起始與數位板表面的接觸時,同時在這個 InputPointerSource的範圍內。

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

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

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

事件類型

備註

當偵測到單一連絡人,並在該連絡人和相同會話中的所有後續連絡人都不再偵測到時,就會開始互動會話。 相同會話中的所有連絡人都會共用相同的畫面識別碼。

適用於