本文介绍了Windows 手机 7 配置/appSettings?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法像 Windows 应用程序和 Web 应用程序一样为 WP7 应用程序添加配置文件?我只需要一种简单的方法来保存一些设置我宁愿不创建自己的对象并且必须序列化/反序列化一个 xml 文件.似乎没有任何类型的项目模板可以添加到我的项目中,所以只是想知道是否有人以最佳方式完成了此操作或想法?

Is there a way to add a config file for WP7 apps like there is for Windows apps and web apps? I just need an easy way to save a few settings I'd rather not create my own object and have to serialize/deserialize an xml file. There doesn't seem to by any kind of item template that I can add to my project so just wondering if anyone has done this or an idea on the best way?

推荐答案

发现您可以使用 IndependentStorageSettings.ApplicationSettings 类来做到这一点.

Found that you can do this using IsolatedStorageSettings.ApplicationSettings class.

这篇关于Windows 手机 7 配置/appSettings?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-29 01:25
查看更多