Tutorial
Download DLL and add to your
Windows 8 project.
We must store some data in the device, so we begin to write the class to save:
public class Account
{
public string Name { get; set; }
public string Surname{ get; set; }
public int Age { get; set; }
}
Save in Isolated Storage:
Account obj = new Account{ Name = "Mario ", Surname = "Rossi", Age = 36 };
var storage = new Setting<Account>();
storage .SaveASync("data", obj);
Load from Isolated Storage:
public async void LoadData()
{
var storage = new Setting<Account>();
Account obj = await storage.LoadASync("data");
}
Also If you want to store List<Account> :
Save a List in Isolated Storage:
List<Account> accountList = new List<Account>();
accountList.Add( new Account(){ Name = "Mario ", Surname = "Rossi", Age = 36 });
accountList.Add( new Account(){ Name = "Marco ", Surname = "Casagrande", Age = 24});
accountList.Add( new Account(){ Name = "Andrea", Surname = "Bianchi", Age = 43 });
var storage = new Setting<List<Account>>();
storage .SaveASync("data", accountList );
Load a List from Isolated Storage:
public async void LoadData()
{
var storage = new Setting<List<Account>>();
List<Account> accountList = await storage.LoadASync("data");
}
Developed by Luca Leone:
-

-

-

-