ICoreWindow.TouchHitTesting 事件
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
指定當觸控接觸區域落在註冊觸控點擊測試的視窗中時所發生的事件。
// 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)