c# - Application settings Windows phone 8 -
i'm developing wp8 , need store custom app settings. found func 'applicationdata' it's not supported in wp8. can me? want store permanent variables provided user. example:
country = ua news = 1
etc.
you can use isolated storage or applicationdata.localsettings :
var localsettings = windows.storage.applicationdata.current.localsettings; // create simple setting localsettings.values["examplesetting"] = "hello windows"; // read data simple setting object value = localsettings.values["examplesetting"]; if (value == null) { // no data } else { // access data in value } // delete simple setting localsettings.values.remove("examplesetting");
Comments
Post a Comment