I\'m in the process of writing a Windows Phone 8 app, so I can capture that much sought-after 3% market share, and am having a hard time persisting user settings within the
Ah ha! Figured this out. I dug up the Windows Phone 7 API docs, and the legacy APIs actually still work on Windows Phone 8 as well.
public static void Session_PersistSession(string ticket)
{
if (IsolatedStorageSettings.ApplicationSettings.Contains("SessionTicket"))
{
IsolatedStorageSettings.ApplicationSettings["SessionTicket"] = ticket;
}
else
{
IsolatedStorageSettings.ApplicationSettings.Add("SessionTicket", ticket);
}
IsolatedStorageSettings.ApplicationSettings.Save();
}
public static string Session_LoadSession()
{
string ticket;
if (IsolatedStorageSettings.ApplicationSettings.TryGetValue<String>("SessionTicket", out ticket))
{
return ticket;
}
return null;
}
A couple of options here....
Also this may provide a bit more context: How to preserve and restore app state for Windows Phone