TouchHitTestingEventArgs.EvaluateProximity Method

Definition

Overloads

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.

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.

/// [Windows.Foundation.Metadata.Overload("EvaluateProximityToPolygon")]
CoreProximityEvaluation EvaluateProximity(winrt::array_view <Point> const& controlVertices);
[Windows.Foundation.Metadata.Overload("EvaluateProximityToPolygon")]
public CoreProximityEvaluation EvaluateProximity(Point[] controlVertices);
function evaluateProximity(controlVertices)
Public Function EvaluateProximity (controlVertices As Point()) As CoreProximityEvaluation

Parameters

controlVertices
Point[]

The array of x-y screen coordinates that define the shape of the UI element (the number of vertices in the polygon). This value must be greater than or equal to 3.

Returns

The CoreProximityEvaluation structure that holds the rank and adjusted touch point data.

Attributes

See also

Applies to

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.

/// [Windows.Foundation.Metadata.DefaultOverload]
/// [Windows.Foundation.Metadata.Overload("EvaluateProximityToRect")]
CoreProximityEvaluation EvaluateProximity(Rect const& controlBoundingBox);
[Windows.Foundation.Metadata.DefaultOverload]
[Windows.Foundation.Metadata.Overload("EvaluateProximityToRect")]
public CoreProximityEvaluation EvaluateProximity(Rect controlBoundingBox);
function evaluateProximity(controlBoundingBox)
Public Function EvaluateProximity (controlBoundingBox As Rect) As CoreProximityEvaluation

Parameters

controlBoundingBox
Rect

The Rect that defines the bounding box of the UI element.

Returns

The CoreProximityEvaluation structure that holds the rank and adjusted touch point data.

Attributes

See also

Applies to