WP8 - 设置初始配置参数的最佳方法 [英] WP8 - Best way to set initial configuration parameters
问题描述
我是WP8开发的新手,我不知道如何为我的应用程序设置初始配置,我的意思是,服务服务(非用户会话),产品密钥等的URL,用户名和密码
我读到 IsolatedStorageSettings.ApplicationSettings 是一个不错的选择保存数据,但我需要在用户第一次使用应用程序或重新启动手机或关闭或清理应用程序时加载此参数/设置,直到我理解 IsolatedStorageSettings.ApplicationSettings 是临时数据。
考虑到我不想做硬编码,存储此配置设置的最佳方法是什么?
谢谢!!
编程
Phil,
使用有关State的信息。 如果状态尚未保存,请使用您的默认值:
http://msdn.microsoft.com/en-us/library/windowsphone/develop/ff967547(v=vs.105).aspx
Hi,
I'm new at developing in WP8 and I don't know how to set the initial configuration for my application, I mean, the Service Url, userName and password for the service(not user session), product key, etc.
I read that IsolatedStorageSettings.ApplicationSettings are a good option to save data but I need to load this parameters/settings the first time the user uses the app or when phone is restarted or app is closed or cleaned, as far I understand IsolatedStorageSettings.ApplicationSettings are temporary data.
What is the best way to store this configuration settings, considering I don't want to do hardcode?
Thanks!!
Just Programming
Phil,
Use this information about State. If the State has not been save yet use your defaults: http://msdn.microsoft.com/en-us/library/windowsphone/develop/ff967547(v=vs.105).aspx
这篇关于WP8 - 设置初始配置参数的最佳方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!