Udostępnij za pośrednictwem


TouchHitTestingEventArgs Class

Definition

Contains the arguments returned by the TouchHitTesting event.

public ref class TouchHitTestingEventArgs sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Standard)]
class TouchHitTestingEventArgs final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Standard)]
public sealed class TouchHitTestingEventArgs
Public NotInheritable Class TouchHitTestingEventArgs
Inheritance
Object Platform::Object IInspectable TouchHitTestingEventArgs
Attributes
Implements

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

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

Gets the bounding rectangle of the touch contact area.

Handled

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

Point

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

ProximityEvaluation

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

Methods

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)

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.

Applies to