Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/string/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# Windows 8应用商店应用程序(Xaml)保存设置_C#_Xaml_Windows Runtime - Fatal编程技术网

C# Windows 8应用商店应用程序(Xaml)保存设置

C# Windows 8应用商店应用程序(Xaml)保存设置,c#,xaml,windows-runtime,C#,Xaml,Windows Runtime,我创建设置页面与。有一个文本框。应用程序中未保存值。如何在关闭设置时保存值 使用(或漫游设置): android没有自动保存功能?@user3540246,你在说什么?这与android有什么关系?在android上,设置表单(首选项)自动保存在本地strorage中的任何字段。我认为在xaml中也有自动保存功能。@user3540246,不,在xaml应用程序中没有这样的功能。 // Save ApplicationData.Current.LocalSettings.Values["Sit

我创建设置页面与。有一个文本框。应用程序中未保存值。如何在关闭设置时保存值


使用(或
漫游设置
):


android没有自动保存功能?@user3540246,你在说什么?这与android有什么关系?在android上,设置表单(首选项)自动保存在本地strorage中的任何字段。我认为在xaml中也有自动保存功能。@user3540246,不,在xaml应用程序中没有这样的功能。
// Save
ApplicationData.Current.LocalSettings.Values["SiteUrl"] = SiteUrl.Text;

// Load
SiteUrl.Text = (string)ApplicationData.Current.LocalSettings.Values["SiteUrl"];