2
我曾经使用独立存储开发wp7应用程序。现在我想将一些应用程序移植到Windows 8,并且我想使用Windows本地存储来保存一些东西。对于wp7,我使用常见的独立存储设置,但我不知道如何将其代码更改为Windows存储。 我想改变下列代码Windows.Storage -适用于Windows 8应用程序的Windows存储
if (!IsolatedStorageSettings.ApplicationSettings.TryGetValue(
this.name, out this.value)) //**Need to change this codes for windows storage**
{
this.value = this.defaultValue;
IsolatedStorageSettings.ApplicationSettings[this.name] = this.value; //**Need to change this codes for windows storage**
}
预先感谢您的帮助!