ユーザー入力を収集しgotoWeb.xaml.cs
、収集した入力を分離ストレージに保存しました。その格納された変数をに渡す必要がありますMainPage.xmal.cs
。私はそれを行う方法を知りませんか?
これvar Page1
とvar Page2
MainPage.xamlが必要です。これを行う方法 ?
コードインgotoWeb.xaml
IsolatedStorageSettings.ApplicationSettings["Page1"] = site;
IsolatedStorageSettings.ApplicationSettings.Save();
IsolatedStorageSettings settings = IsolatedStorageSettings.ApplicationSettings;
//store it in the settings
if (!settings.Contains("qsPage1"))
{
//if setting has not been created, add it
settings.Add("qsPage1", site);
}
else
{
//store a the page in the setting
settings["qsPage1"] = site;
}
var Page1 = IsolatedStorageSettings.ApplicationSettings["qsPage1"];
// and by using same isolated settings method, created one more varible
var Page2 = IsolatedStorageSettings.ApplicationSettings["qsPage2"];