I have a list of coordinates saved in a map class that are manipulated to draw a route between the points, but I'm not sure how to save these points when the application is closed and then reopened.
This is how I currently save the points within the app in the OnNavigatedTo()
, the points and markers aren't lost as long as I don't close it. But how do I save these coordinates after I close the app?
I'm guessing I should save them in the OnNavigatedFrom
but I tried saving the coordinate list here and the markers don't show when I repopen the app.
//save the coordinates to a list
mycoord.Add(new GeoCoordinate(MyGeoPosition.Latitude, MyGeoPosition.Longitude));
if (mycoord.Count == 2)
{
//call route method when coord list equal to two.
GetRoute();
}