Returns the center point between the current touch points relative to the given UIElement.

Namespace: Mindscape.PhoneElements
Assembly: Mindscape.PhoneElements (in Mindscape.PhoneElements.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public Point GetMidPoint(
	UIElement relativeTo
)
Visual Basic
Public Function GetMidPoint ( _
	relativeTo As UIElement _
) As Point
Visual C++
public:
Point GetMidPoint(
	UIElement^ relativeTo
)

Parameters

relativeTo
Type: System.Windows..::..UIElement
The UIElement to derive the center point.

Return Value

The center point of the pinch gesture relative to a given UIElement.

See Also