Class used to hold the event data required when a page attempts to save state.
Inheritance: System.EventArgs
Esempio n. 1
0
 private void NavigationHelper_SaveState(object sender, SaveStateEventArgs e)
 {
     e.PageState.Add(STATE_SEARCHTEXT, ViewModel.SearchText);
     e.PageState.Add(STATE_FLIPVIEW_INDEX, GroupFlipView.SelectedIndex);
     e.PageState.Add(STATE_FLIPVIEW_SCROLLVIEW_VERTICALOFFSET, 
         (GroupFlipView.SelectedItem as FrameworkElement)
             .Descendents()?
             .OfType<ScrollViewer>()?
             .FirstOrDefault()?
             .VerticalOffset ?? 0);
 }
Esempio n. 2
0
 private void NavigationHelper_SaveState(object sender, SaveStateEventArgs e)
 {
 }
 private void NavigationHelper_SaveState(object sender, SaveStateEventArgs e)
 {
     e.PageState[STATE_SCROLLVIEWER_OFFSET_Y] = GetListViewScrollViewer().VerticalOffset;
 }
 private void NavigationHelper_SaveState(object sender, SaveStateEventArgs e)
 {
     e.PageState.Add("HorizontalOffset", E_ScrollViewer_Map.HorizontalOffset);
     e.PageState.Add("VerticalOffset", E_ScrollViewer_Map.VerticalOffset);
     e.PageState.Add("ZoomFactor", E_ScrollViewer_Map.ZoomFactor);
 }
 private void NavigationHelper_SaveState(object sender, SaveStateEventArgs e)
 {
     //e.PageState.Add(STATE_FLIPVIEW_INDEX, E_FlipView_Events.SelectedIndex);
     //e.PageState.Add(STATE_FLIPVIEW_SCROLLVIEW_VERTICALOFFSET,
     //    (E_FlipView_Events.ContainerFromItem(E_FlipView_Events.SelectedItem) as FrameworkElement)
     //        .Descendents()?
     //        .OfType<ScrollViewer>()?
     //        .FirstOrDefault()?
     //        .VerticalOffset ?? 0);
 }