ArcGIS API for WPF - 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
)

Parameters

point
Point to convert.

Return Value

Map coordinate

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.

Requirements

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

See Also

© ESRI, Inc. All Rights Reserved.