CoreWindow.PointerPressed 事件

定義

發生于按一下滑鼠按鍵,或數位板表面已由手指或手寫筆觸碰到應用程式周框內的周框內時。

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

此事件會在互動會話中偵測到的第一個連絡人引發。 所有其他並行連絡人指標的詳細資料都會透過PointerPointProperties物件公開 (取得,方法是從PointerPoint物件取得Properties屬性) 。

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

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

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

事件類型

實作

適用於

另請參閱