Created
March 6, 2014 23:02
-
-
Save guilhermecarvalhocarneiro/9401632 to your computer and use it in GitHub Desktop.
Chamando MapsDirectionTask
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void Address_Tap(object sender, System.Windows.Input.GestureEventArgs e) | |
{ | |
try | |
{ | |
MapsDirectionsTask mapsDirectionsTask = new MapsDirectionsTask(); | |
GeoCoordinate CoordenadaFinal = new GeoCoordinate(LatItem, LngItem); | |
LabeledMapLocation EndPoint = new LabeledMapLocation(PanoramaDetailItem.Title.ToString(), CoordenadaFinal); | |
mapsDirectionsTask.End = EndPoint; | |
// If mapsDirectionsTask.Start is not set, the user's current location is used as the start point. | |
mapsDirectionsTask.Show(); | |
} | |
catch (Exception erro) | |
{ | |
MessageBox.Show(erro.ToString()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Message:
Type 'Newtonsoft.Json.Linq.JObject' with data contract name 'ArrayOfKeyValueOfstringJTokeneJCYCtcq:http://schemas.microsoft.com/2003/10/Serialization/Arrays' is not expected. Add any types not known statically to the list of known types - for example, by using the KnownTypeAttribute attribute or by adding them to the list of known types passed to DataContractSerializer.