/// <summary>
 /// Preserves state associated with this page in case the application is suspended or the
 /// page is discarded from the navigation cache.  Values must conform to the serialization
 /// requirements of <see cref="SuspensionManager.SessionState"/>.
 /// </summary>
 /// <param name="sender">The source of the event; typically <see cref="NavigationHelper"/></param>
 /// <param name="e">Event data that provides an empty dictionary to be populated with
 /// serializable state.</param>
 private void navigationHelper_SaveState(object sender, SaveStateEventArgs e)
 {
     e.PageState["FilterIndex"] = defaultViewModel.FilterIndex;
 }
Esempio n. 2
0
 private void navigationHelper_SaveState(object sender, SaveStateEventArgs e)
 {
     SaveState(e);
 }
Esempio n. 3
0
 protected virtual void SaveState(SaveStateEventArgs e)
 {
 }
Esempio n. 4
0
 protected virtual void SaveState(SaveStateEventArgs e)
 {
 }
Esempio n. 5
0
 private void navigationHelper_SaveState(object sender, SaveStateEventArgs e)
 {
     SaveState(e);
 }