IsolatedStorageSettings provide a convenient way to store user specific data as key-value pairs in a local IsolatedStorageFile. A typical use is to save settings, such as the number of images to display per page, page layout options, and so on.
User settings can be specific to an application or shared across applications in the same domain. ApplicationSettings are stored as per-application, per-computer, and per-user settings. Their scope is determined by the full path of the application .xap file. SiteSettings are stored as per-domain, per-computer, and per-user settings. Their scope is determined by the sub-domain that hosts the application .xap file. For example, an application at http://www.contoso.com/site1/application.xap will have different ApplicationSettings than an application at http://www.contoso.com/site2/application.xap. However, both applications will share the same SiteSettings because they are hosted on the same sub-domain.
Note: |
|---|
The .xap files are not accessed directly; they are hosted within a Web page. |
Like all data stored in isolated storage using Silverlight 2, IsolatedStorageSettings are stored locally on the user's computer. In Windows Vista, the information is stored in the AppData\LocalLow directory. For other operating system versions, including those on the Apple Macintosh, information is stored in the AppData\Local directory. Values stored in isolated storage are stored locally and are not available for roaming.