Local Settings

Init Settings

Windows.Storage.ApplicationDataContainer localSettings = Windows.Storage.ApplicationData.Current.LocalSettings;

Create Setting

localSettings.Values["MySetting"] = "This is my Setting";

Read Setting

if(localSettings.Contains("MySetting"))
{
  var data = localSettings.Values["MySetting"];
}

Delete Setting

localSettings.Values.Remove["MySetting"];

Composite Settings

Windows.Storage.ApplicationDataCompositeValue composite = new Windows.Storage.ApplicationDataCompositeValue();
composite["intVal"] = 1;
composite["strVal"] = "string";
localSettings.Values["MyCompositeSetting"] = composite;