Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Due to MSDN : 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.</p> <p>so I don't think that using IsolatedStorageSettings would be your best option , if I were you , I would use IsolatedStorageFile.</p> <p>To save and load the content of your list , the scenario would be </p> <p>1- if an item is added or removed from your list , you searlize the list to xml and save it IsolatedStorageFile</p> <pre><code> private static void Serialize(string fileName, object source) { var userStore = IsolatedStorageFile.GetUserStoreForApplication(); using (var stream = new IsolatedStorageFileStream(fileName, FileMode.Create, userStore)) { XmlSerializer serializer = new XmlSerializer(source.GetType()); serializer.Serialize(stream, source); } } </code></pre> <p>2- When you want to load your list at any place , you would deserialize the xml file stored in IsolatedStorageFile</p> <pre><code>public static void Deserialize&lt;T&gt;(ObservableCollection&lt;T&gt; list , string filename) { list = new ObservableCollection&lt;T&gt;(); var userStore = IsolatedStorageFile.GetUserStoreForApplication(); if (userStore.FileExists(filename)) { using (var stream = new IsolatedStorageFileStream(filename, FileMode.Open, userStore)) { XmlSerializer serializer = new XmlSerializer(list.GetType()); var items = (ObservableCollection&lt;T&gt;)serializer.Deserialize(stream); foreach (T item in items) { list.Add(item); } } } } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload