title: Save scroll state in Windows Phone 8.1 when user navigate between pages
body: <p>I navigate between pages with Navigation Helper class which VS 2013 added when solution created, But scroll state most of controls (Like Pivot, Hub) does not saved like in Windows Phone 8.x Silverlight.</p>
  
  <p>What should I do for implement this behaviour? Should I handle scrolling state by myself and restore scroll when i go back in visited page?</p>
  
  <p>Thanks.</p>
  
  <p><strong>UPDATE1:</strong></p>
  
  <p>I need save selected pivot/hub item etc, when i go back to page.</p>
  
  <p><strong>UPDATE2:</strong></p>
  
  <pre class="lang-cs prettyprint-override"><code>    void navigationHelper_SaveState(obj sender,SaveStateEventArgs e)
      {
      e.PageState["SelectedSection"] = MainHub.SectionsInView;
      }
      void navigationHelper_LoadState(obj sender,LoadStateEventArgs e)        
      {
          if (e.PageState != null)
          {
              var sections = e.PageState["SelectedSection"] as IList&lt;HubSection&gt;;
              if (sections != null &amp;&amp; sections.Any())
                  MainHub.ScrollToSection(sections[0]);
          }
      }
  </code></pre>