MapCore.TryViewportPointToLocation Method (Point, Location)

Bing
 

Attempts to convert a viewport point to a location on a map.

Namespace:   Microsoft.Maps.MapControl.WPF
Assembly:  Microsoft.Maps.MapControl.WPF (in Microsoft.Maps.MapControl.WPF.dll)

public bool TryViewportPointToLocation(
	Point viewportPoint,
	out Location location
)

Parameters

viewportPoint
Type: System.Windows.Point

A viewport coordinate.

location
Type: Microsoft.Maps.MapControl.WPF.Location

Location on the map the corresponds to the viewport point.

Return Value

Type: System.Boolean

Returns Boolean if the point was successfully converted to a point on the map.

Return to top
Show: