2

我曾经使用隔离存储开发 wp7 应用程序。现在我想将一些应用程序移植到 Windows 8,并且我想使用 Windows 本地存储来保存一些东西。对于 wp7,我使用常见的隔离存储设置,但我不知道如何将其代码更改为 windows 存储。我想将以下代码更改为 Windows.Storage -

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**
}

提前感谢您的帮助!!!

4

1 回答 1

0

很好的示例如何在 Windows 8 应用程序中保存\获取\检查应用程序设置https://stackoverflow.com/a/14662969/1200453

于 2013-05-13T10:35:34.817 回答