Share via


ICoreWindow.TouchHitTesting Event

Definition

Specifies the event that occurs when a touch contact area falls within a window that is registered for touch hit testing.

// 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) 

Event Type

Applies to