C# wp 8.1中的隔离存储设置
在这种情况下,我可以做什么: “当我关闭应用程序保存(可见文本块)时,我想C# wp 8.1中的隔离存储设置,c#,silverlight,windows-phone-8.1,C#,Silverlight,Windows Phone 8.1,在这种情况下,我可以做什么: “当我关闭应用程序保存(可见文本块)时,我想 我在windows phone 8.1(Silverlight)中使用它,在app.xaml.cs文件中,您需要在应用程序关闭事件中实现一些代码,以从页面检索可见性属性并将其保存到应用程序设置中 它被称为Windows Phone应用程序生命周期的一部分,并且有很好的文档记录。可能重复的 private IsolatedStorageSettings appSettings = IsolatedStorageSettin
我在windows phone 8.1(Silverlight)中使用它,在app.xaml.cs文件中,您需要在应用程序关闭事件中实现一些代码,以从页面检索可见性属性并将其保存到应用程序设置中 它被称为Windows Phone应用程序生命周期的一部分,并且有很好的文档记录。可能重复的
private IsolatedStorageSettings appSettings = IsolatedStorageSettings.ApplicationSettings;
private void Button_Click(object sender, RoutedEventArgs e)
{
appSettings["name"] = textblock.Visibility;
textblock.Visibility = Visibility.Visible;
}