CoreWindow.TouchHitTesting Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Occurs when a touch contact area intersects the bounding rectangle (or polygon) of 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
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