wpf-devexpress-dot-xpf-dot-map-dot-mapcontrol-dot-screenpointtocoordpoint-x28-system-dot-windows-dot-point-x29.md
Converts a specified screen point to a corresponding coordinate point.
Namespace : DevExpress.Xpf.Map
Assembly : DevExpress.Xpf.Map.v25.2.dll
NuGet Package : DevExpress.Wpf.Map
public CoordPoint ScreenPointToCoordPoint(
Point screenPoint
)
Public Function ScreenPointToCoordPoint(
screenPoint As Point
) As CoordPoint
| Name | Type | Description |
|---|---|---|
| screenPoint | Point |
A Point object containing a map coordinate on the screen.
|
| Type | Description |
|---|---|
| CoordPoint |
A CoordPoint class descendant object.
|
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ScreenPointToCoordPoint(Point) method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
private void vLayer_MouseDoubleClick(object sender, MouseButtonEventArgs e) {
GeoPoint point = (GeoPoint)mapControl.ScreenPointToCoordPoint(e.GetPosition(mapControl));
var hi = mapControl.CalcHitInfo(e.GetPosition(mapControl));
See Also