Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Chamando MapsDirectionTask
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());
}
}
@guilhermecarvalhocarneiro

This comment has been minimized.

Copy link
Owner Author

commented Mar 7, 2014

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.