Windows Phone 8 ApplicationSettings - Get settings in Universal app

牧云@^-^@ 提交于 2019-12-03 20:59:32
Romasz

LocalSettings in WP8.1 works differently than those in WP8.0 - where settings were saved in a file (after serialization). The file is __ApplicationSettings - take a look at it (via IS explorer tool) and you will see its structure - part of it is a serialized dictionary. I've made some research once, which showed that all the old files are preserved during the update - which means that the settings are still there.

Once you update your WP8.0 app to WP8.1 and you want to read your old settings, you can retrive the values from the file.

This blog post has your exact answer, including the code needed to deserialize the migrated settings file!

You can use ApplicationData.LocalSettings It would Get you the application settings container in the local app data store. here is a Dev center link in which its Described how to use it.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!