共用方式為


CoreWindow.TouchHitTesting 事件

定義

發生于觸控接觸區域與已登錄觸控點擊測試之視窗的周框 (或多邊形交集) 時。

// Register
event_token TouchHitTesting(TypedEventHandler<CoreWindow, TouchHitTestingEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
CoreWindow::TouchHitTesting_revoker TouchHitTesting(auto_revoke_t, TypedEventHandler<CoreWindow, TouchHitTestingEventArgs const&> const& handler) const;
public event TypedEventHandler<CoreWindow,TouchHitTestingEventArgs> TouchHitTesting;
function onTouchHitTesting(eventArgs) { /* Your code */ }
coreWindow.addEventListener("touchhittesting", onTouchHitTesting);
coreWindow.removeEventListener("touchhittesting", onTouchHitTesting);
- or -
coreWindow.ontouchhittesting = onTouchHitTesting;
Public Custom Event TouchHitTesting As TypedEventHandler(Of CoreWindow, TouchHitTestingEventArgs) Implements TouchHitTesting

事件類型

實作

適用於