TouchHitTestingEventArgs TouchHitTestingEventArgs TouchHitTestingEventArgs TouchHitTestingEventArgs Class

Definition

Contains the arguments returned by the TouchHitTesting event.

public : sealed class TouchHitTestingEventArgs : ICoreWindowEventArgs, ITouchHitTestingEventArgs
struct winrt::Windows::UI::Core::TouchHitTestingEventArgs : ICoreWindowEventArgs, ITouchHitTestingEventArgs
public sealed class TouchHitTestingEventArgs : ICoreWindowEventArgs, ITouchHitTestingEventArgs
Public NotInheritable Class TouchHitTestingEventArgs Implements ICoreWindowEventArgs, ITouchHitTestingEventArgs
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

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

Properties

BoundingBox BoundingBox BoundingBox BoundingBox

Gets the bounding rectangle of the touch contact area.

Handled Handled Handled Handled

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

Point Point Point Point

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

ProximityEvaluation ProximityEvaluation ProximityEvaluation ProximityEvaluation

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

Methods

EvaluateProximity(Point[]) EvaluateProximity(Point[]) EvaluateProximity(Point[]) EvaluateProximity(Point[])

Returns a ranking for the polygon as the probable touch target and an adjusted touch point within the polygon. The rank is determined through a comparison of targeting heuristics for all polygons that intersect the touch contact area.

EvaluateProximity(Rect) EvaluateProximity(Rect) EvaluateProximity(Rect) 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.