Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows 8 local storage

I have searched around a lot but have not found much of anything in regards to local storage for Windows 8 metro apps. Does anyone know of any easy way to create a local storage DB with basic save() and load() functions?
All I need is to bind some XAML to some data (titles, descriptions etc). I have made windows phone 7 apps before using Isolatedstoragesystem but obviously it is different for windows 8... documentation didn't help much either >.< Any tips appreciated.

like image 671
that_guy Avatar asked Nov 18 '25 06:11

that_guy


1 Answers

You have a spectrum of options available to you, and there are code samples you should check out - specifically the Application Data Sample at the Windows Dev Center

You could use app file storage, local data (dictionary stored on device), roaming data (dictionary stored in the cloud) - all of which are accessible via Windows.Storage.ApplicationData.Current. For example,

Windows.Storage.ApplicationData.Current.LocalSettings.Values["FirstName"] = "Joe"

Beyond that you could pull in SQLite for relational type storage managed in-process.

like image 65
Jim O'Neil Avatar answered Nov 20 '25 19:11

Jim O'Neil



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!