Reputation: 1
How to implement it? Map is Microsoft.Phone.Maps.Controls.Map.
Upvotes: 0
Views: 2028
Reputation: 1313
try and use this to get location on tap on map ....
private void Map_Tap(object sender, System.Windows.Input.GestureEventArgs e)
{
GeoCoordinate asd = this.Map.ConvertViewportPointToGeoCoordinate(e.GetPosition(this.Map));
}
i hope it will help ...
Upvotes: 4
Reputation: 93
First add the following reference Microsoft.Phone.Controls.Maps.dll and implement .xaml
as follows
xmlns:maps="clr-amespace:Microsoft.Phone.Controls.Maps;assembly=Microsoft.Phone.Controls.Maps"
Upvotes: 0