Ejemplo n.º 1
0
        protected override void HandleNavigationHelperSaveState(object sender, SaveStateEventArgs e)
        {
            base.HandleNavigationHelperSaveState(sender, e);

            e.PageState.Add("LIBRARY_PIVOT_INDEX", RootPivot.SelectedIndex);
            
            songListRestoreHelper.SaveState(e.PageState);
            albumListRestoreHelper.SaveState(e.PageState);
            artistListRestoreHelper.SaveState(e.PageState);
        }
Ejemplo n.º 2
0
        protected override void HandleNavigationHelperSaveState(object sender, SaveStateEventArgs e)
        {
            base.HandleNavigationHelperSaveState(sender, e);

            listRestoreHelper.SaveState(e.PageState);
        }
Ejemplo n.º 3
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>
 protected virtual void HandleNavigationHelperSaveState(object sender, SaveStateEventArgs e)
 {
 }