O'Reilly logo

Microsoft Silverlight 5 Data and Services Cookbook by Kevin Dockx, Gill Cleeren

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required