windows-phone-8.1isolatedstorageapplication-data

Difference between LocalSettings and IsolatedStorageSettings


I am building a Windows Phone 8.1 Silverlight App. I am able to use both the following registries:

Windows.Storage.ApplicationData.Current.LocalSettings;

IsolatedStorageSettings.ApplicationSettings;
  1. What are the differeces between these two?
  2. Which one is better?

Solution

  • The difference between Windows.Storage.ApplicationData.Current.LocalSettings and IsolatedStorageSettings.ApplicationSettingsis that the first one is the newer unified Windows Store App API whereas the latter is from the "old" Silverlight API.

    New is not always better but I personally think you should go with the modern version here. Both work with Silverlight but if you ever have to migrate your code to WinRT you will save yourself some time since the IsolatedStorageSettings API does not work under WinRT.