/// <summary>
        /// Populates the page with content passed during navigation.  Any saved state is also
        /// provided when recreating a page from a prior session.
        /// </summary>
        /// <param name="navigationParameter">The parameter value passed to
        /// <see cref="Frame.Navigate(Type, Object)"/> when this page was initially requested.
        /// </param>
        /// <param name="pageState">A dictionary of state preserved by this page during an earlier
        /// session.  This will be null the first time a page is visited.</param>
        private void navigationHelper_LoadState(object sender, LoadStateEventArgs e)
        {

        }
Beispiel #2
0
 /// <summary>
 /// Populates the page with content passed during navigation.  Any saved state is also
 /// provided when recreating a page from a prior session.
 /// </summary>
 /// <param name="navigationParameter">The parameter value passed to
 /// <see cref="Frame.Navigate(Type, Object)"/> when this page was initially requested.
 /// </param>
 /// <param name="pageState">A dictionary of state preserved by this page during an earlier
 /// session.  This will be null the first time a page is visited.</param>
 private void navigationHelper_LoadState(object sender, LoadStateEventArgs e)
 {
     ApplicationDataContainer roamingSettings = ApplicationData.Current.RoamingSettings;
     if (roamingSettings.Values.ContainsKey("emailInput"))
     {
         emailInput.Text = roamingSettings.Values["emailInput"].ToString();
     }
     if (roamingSettings.Values.ContainsKey("passwordInput"))
     {
         passwordInput.Password = roamingSettings.Values["passwordInput"].ToString();
     }
     if (roamingSettings.Values.ContainsKey("rememberPasswordInput"))
     {
         rememberPasswordInput.IsChecked = (bool?)roamingSettings.Values["rememberPasswordInput"];
     }
 }