ApplicationDataContainer localSettings = ApplicationData.Current.LocalSettings;
localSettings.Values["stupidcrap"] = "test1";
and then after restarting the app in Visual Studio:
ApplicationDataContainer localSettings = ApplicationData.Current.LocalSettings;
Debug.WriteLine(localSettings.Values["stupidcrap"]);
it prints nothing (which means the Object is null).
Why does that happen?
When I do it like this:
ApplicationDataContainer localSettings = ApplicationData.Current.LocalSettings;
localSettings.Values["stupidcrap"] = "test1";
Debug.WriteLine(localSettings.Values["stupidcrap"]);
it prints successfully, but the point of storage is that the values being saved are available after a restart of the app....
Why is the memory/storage/whatever not saving my values?