日期:2014-05-17 浏览次数:20805 次
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Windows.Storage; namespace Win8_Study.Pages { class LocalDataUtil { #region 保存/读取基本类型数据 public static void SaveData(string key, object value) { ApplicationData.Current.LocalSettings.Values[key] = value; } public static object GetData(string key) { return ApplicationData.Current.LocalSettings.Values[key]; } public static void RemoveData(string key) { ApplicationData.Current.LocalSettings.Values.Remove(key); } #endregion } }
public sealed partial class LocalDataPage : Win8_Study.Common.LayoutAwarePage { private readonly string TEXT_VALUE = "国米_百度百科\n" + "国际米兰足球俱乐部(Football Club Internazionale Milano,简称 Inter 或 Internazionale)" +