Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

5. Working with Local Data > Working with IsolatedStorageSettings

Working with IsolatedStorageSettings

Applies to Silverlight 3, 4, and 5

In the previous recipe, we used the IsolatedStorageFile class to manually perform the saving to and reading from isolated storage. While this option is the most powerful one—it allows us to save anything varying from raw data to images—it's quite a cumbersome task to perform all the serializing and deserializing of objects ourselves. Although we used the easy-to-work-with LINQ-to-XML, there is an even easier solution: letting Silverlight take care of this detail. In this recipe, we'll do just that by using the IsolatedStorageSettings class.

Getting ready

In this recipe, we are going to refactor the code from the previous recipe. You can therefore continue working on that codebase. Alternatively, you can use the starter solution provided with this book, which is located in the Chapter05/IsolatedStorageSettings_Starter folder. The complete solution for this recipe can be found in the Chapter05/IsolatedStorageSettings_Completed folder.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint