in my WP7 application, I do:
string userName = IsolatedStorageSettings.ApplicationSettings.Contains("UserName") ? IsolatedStorageSettings.ApplicationSettings["UserName"].ToString() : null; if (string.IsNullOrEmpty(userName)) IsolatedStorageSettings.ApplicationSettings["UserName"] = "test";
I run my application (F5), of course, the username is empty, so it is stored in isolated storage.
I am stopping my application (stop debugging) and I am not closing the emulator
Run my application again (F5), but still empty.
I read that isolated storage should persist until the emulator is closed.
What am I doing wrong?
Thanks in advance for your reply.
source share