Isolated Storage

There are 2 entries for the tag Isolated Storage

Serializing Objects to Isolated Storage in Silverlight 2

[Cross posted from: SilverlightForBusiness.net ] Silverlight 2 does not have a BinaryFormatter like the full framework does so you have to take a different approach to serializing data to Isolated Storage. However there is a simple solution by using the DataContractSerializer.  You will need to add a reference to System.Runtime.Serialization.  This will serialize the object to an Xml format and is what Silverlight uses when you add a service reference. So if we have an object called Person, we can use the DataContract and DataMember attributes to mark it up as follows: [DataContract] public...

Storing Images in Isolated Storage. A Silverlight 2 "Image Browser" example

Isolated storage offers a great opportunity to improve performance for locally cached data.  Instead of reading data from the server you can store it locally in the protected storage available to Silverlight.  Images seem like a good use for this, but it is not as easy as you may expect in the current build.  Here is a simple image browser example that walks through some of the ideas. In this example we will: See how to use the FileOpenDialog to allow the users to select image files from their hard drive Save those files into Isolated Storage...