views:

40

answers:

1

The full .NET platform has a great feature for storing user options in Settings files, which conveniently support saving and loading. Has anyone created an analog to this for Silverlight? I'd like the settings to be stored client side.

+2  A: 

Silverlight has an IsolatedStorage API as well - you can save/retrieve discrete elements via a dictionary as well as a full file system API in Isolated Storage.

  1. Create a class that can be serialized via XML (use the DataContractSerializer)
  2. Serialize object on close/Deserialize the object on open.
Michael S. Scherotter