ArcGIS Runtime SDK for WPF - Library Reference
ScreenToMap Method
See Also 
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 control.

Parameters

point
Point to convert.

Return Value

Map coordinate

Requirements

Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7, Windows 8

See Also

© ESRI, Inc. All Rights Reserved.