共用方式為


ICoreWindow.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
ICoreWindow::TouchHitTesting_revoker TouchHitTesting(auto_revoke_t, TypedEventHandler<CoreWindow, TouchHitTestingEventArgs const&> const& handler) const;
event TypedEventHandler<CoreWindow,TouchHitTestingEventArgs> TouchHitTesting;
function onTouchHitTesting(eventArgs) { /* Your code */ }
iCoreWindow.addEventListener("touchhittesting", onTouchHitTesting);
iCoreWindow.removeEventListener("touchhittesting", onTouchHitTesting);
- or -
iCoreWindow.ontouchhittesting = onTouchHitTesting;
Event TouchHitTesting As TypedEventHandler(Of CoreWindow, TouchHitTestingEventArgs) 

事件類型

適用於