TouchHitTestingEventArgs class
TOC
Collapse the table of content
Expand the table of content

TouchHitTestingEventArgs class

Contains the arguments returned by the TouchHitTesting event.

Syntax


public ref class TouchHitTestingEventArgs sealed : ICoreWindowEventArgs

Members

The TouchHitTestingEventArgs class has these types of members:

Methods

The TouchHitTestingEventArgs class has these methods. It also inherits methods from the Object class.

MethodDescription
EvaluateProximity(Point[]) Returns the rank of a polygon as the probable touch target, compared to all other polygons that intersect the touch contact area, and an adjusted touch point within the polygon.
EvaluateProximity(Rect) Returns a ranking for the rectangle as the probable touch target and an adjusted touch point within the rectangle. The rank is determined through a comparison of targeting heuristics for all rectangles that intersect the touch contact area.

 

Properties

The TouchHitTestingEventArgs class has these properties.

PropertyAccess typeDescription

BoundingBox

Read-only

Gets the bounding rectangle of the touch contact area.

Handled

Read/write

Gets or sets a value indicating whether the TouchHitTesting event was handled.

Point

Read-only

Gets the screen coordinates of the touch point reported by the touch digitizer.

ProximityEvaluation

Read/write

Gets or sets the proximity evaluation score for an object relative to the touch contact area.

 

Remarks

Note  : This class is not agile, which means that you need to consider its threading model and marshaling behavior. For more info, see Threading and Marshaling (C++/CX).
 

Requirements (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.UI.Core
Windows::UI::Core [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8

Namespace

Windows.UI.Core
Windows::UI::Core [C++]

Metadata

Windows.winmd

Attributes

[MarshalingBehavior(Standard)]
[Version(0x06020000)]
[WebHostHidden()]

See also

Object
ICoreWindowEventArgs

 

 

Show:
© 2016 Microsoft