devha
devha

Reputation: 3367

How to migrate from IsolatedStorageSettings (WP8.0) to ApplicationData (WP8.1 runtime)

I have Windows Phone 8.0 app which uses IsolatedStorageSettings.ApplicationSettings to store settings etc. Now Im planning to "update" this app to Windows Phone Store 8.1 app and use ApplicationData.Current.RoamingSettings.

How to migrate app settings, which are already saved to IsolatedStorageSettings.ApplicationSettings to ApplicationData.Current.RoamingSettings?

Upvotes: 2

Views: 1354

Answers (1)

Adam
Adam

Reputation: 982

If you are updating to a Silverlight 8.1 app, IsolatedStorageSettings.ApplicationSettings will still work. Just read the settings out and copy them to the ApplicationData.Current.RoamingSettings

If you are updating to a universal app the discussion is here: Windows Phone 8 ApplicationSettings - Get settings in Universal app. The result is you are looking for the __Application Settings file and you'll want to deserialize it to get the settings out. There is no general solution, but if you know what you are expecting in the file, it isn't all that hard.

Upvotes: 2

Related Questions