c# - Local settings in Windows Phone 8.1 app are not stored -
i have created many apps windows phone 7 , 8. store settings using these methods:
isolatedstoragesettings.applicationsettings["key"] = value; isolatedstoragesettings.applicationsettings.save();
everything worked perfectly, settings stored. save()
method did job.
but creating app windows phone 8.1 (winrt). have followed this guide learn hot save settings. ane here how looks now:
windows.storage.applicationdata.current.localsettings.values["key"] = value;
but when close app , run again, they're gone, settings not stored. question is: how save settings in windows phone 8.1?
this line works:
windows.storage.applicationdata.current.localsettings.values["key"] = value;
the problem when you're trying call via binding in xaml property. may have problem it. avoid it, , call method in code behind explicite.
Comments
Post a Comment