2
我正在开发Windows Phone 7应用程序。将枚举保存到IsolatedStorageSettings
我有一个枚举,我想将一个枚举值保存到IsolatedStorageSettings。
我该怎么做?
我正在开发Windows Phone 7应用程序。将枚举保存到IsolatedStorageSettings
我有一个枚举,我想将一个枚举值保存到IsolatedStorageSettings。
我该怎么做?
它应该是这样的:
IsolatedStorageSettings.ApplicationSettings["someKey"] = YourObject.TheEnumValue;
感谢, 斯特凡威克 - 微软的Silverlight
你尝试过什么?
有很多关于如何保存/加载对象的示例代码:
例如,
试着写一个简单的测试应用程序 - 你很快就会得到它的窍门!
只有“疑难杂症”我想提醒你的是,确保你打电话Save()
设置/改变的值
感谢后,你是伟大的!周日不好工作。 – VansFannel 2011-04-10 17:36:06