Esempio n. 1
0
 /// <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)
 {
     // TODO: Save the unique state of the page here.
 }
 /// <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)
 {
 }
Esempio n. 3
0
 /// <summary>
 /// 保留与此页关联的状态,以防挂起应用程序或
 /// 从导航缓存中放弃此页。值必须符合
 /// <see cref="SuspensionManager.SessionState"/> 的序列化要求。
 /// </summary>
 /// <param name="sender">事件的来源;通常为 <see cref="NavigationHelper"/></param>
 ///<param name="e">提供要使用可序列化状态填充的空字典
 ///的事件数据。</param>
 private void NavigationHelper_SaveState(object sender, SaveStateEventArgs e)
 {
     // TODO: 在此处保存页面的唯一状态。
 }