title: SaveState and LoadState in Windows Store apps
body: <p>Pretty nice thing in VisualStudio's default template is LayoutAwarePage. We can SaveState and LoadState of the pages in Application navigation and Termination. In this case, I have 'n' number of ComboBoxes and TextBoxes inside the RootGrid.</p>
  
  <p>While navigating to NextPage i am saving the RootGrid's State using the following code.</p>
  
  <pre><code>pageState.Add("RootGridPage",RootGrid);
  </code></pre>
  
  <p>I have written the code by the guess like , LayoutAwarePage will take care of the Serialization for all the controls available in the RootGrid rather than Serializing only the RootGrid.</p>
  
  <p>When i try to get the RootGrid in the LoadState method using the following code.</p>
  
  <pre><code>if (pageState !=null &amp;&amp; pageState.ContainsKey("RootGridPage"))
              {
                  RootGrid= pageState["RootGridPage"] as Grid;
              }
  </code></pre>
  
  <p>I did not get the Deserialized ComboBoxes and TextBoxes in the RootGrid. It did not persist the state. My question is whether if we save the State of the RootGrid, will it save all the available states of the controls inside it ?. If it is not, Is there any way to achieve this ?. Because i cant go and save the state for the all the 'n' number of controls.
  Could you please anyone help me on this ?</p>