best way to store the configuration values in WP7 app
Since there is no default configuration file In a WP7 app, what is the best way to store the configuration values, e.g. DB connection strings, API Urls. I want these values to be available easily and also 开发者_JAVA技巧updated easily.
Thanks
If the values are simple you could store them in the IsolatedStorageSettings class.
If they get more complex, you could store them in a file (again in IsolatedStorage) with default values from within the code.
You can also use http://sterling.codeplex.com/, which kind of database. I use it in my Todoist Lite. Works great for quering, saving, loading, etc. sets of data.
Check this out. I this is what you're after? http://www.dreamincode.net/forums/topic/198869-wp7-using-isolatedstoragesettings/
精彩评论