ArcGIS API for Windows Phone - Library Reference
ScreenToMap Method
See Also  Send comments on this topic
ESRI.ArcGIS.Client Namespace > Map Class : ScreenToMap Method

point
Point to convert.
Converts screen coordinates relative to the control into map coordinates.

Syntax

Visual Basic (Declaration) 
Public Function ScreenToMap( _
   ByVal point As Point _
) As MapPoint
C# 
public MapPoint ScreenToMap( 
   Point point
)

Remarks

Ensure that the point argument is relative to the map instance. You can easily do this by using the method: myElement.TransformToVisual(myMap).Transform(myPoint);

where myElement is the element the screen coordinates are relative to. You can use "System.Windows.Application.Current.RootVisual" if you want to use coordinates relative to the entire Silverlight control.

Parameters

point
Point to convert.

Return Value

Map coordinate

Requirements

Target Platforms:Windows Phone 7

See Also

© ESRI, Inc. All Rights Reserved.