在Windows Phone 8.1上保存常规应用程序设置的首选/标准方法是什么?

时间:2014-07-22 10:55:21

标签: windows-phone-8.1

是否有内置的设置提供程序可以自动绑定到UI,还是我必须自己滚动?

1 个答案:

答案 0 :(得分:0)

存储常规应用设置的一种简单方法是LocalSettings,这里是

Windows.Storage.ApplicationDataContainer localSettings = Windows.Storage.ApplicationData.Current.LocalSettings;
localSettings.Values["MySetting1"] = "this is setting 1";
localSettings.Values["MySetting2"] = "Setting 2";

详情请参阅this