title: Best way to access current instance of MainPage in a Windows Store app?
body: <p>I was wondering how one could access the current instance of the main page from a different class in a C# Windows Store app.</p>
  
  <p>Specifically, in a Windows Store app for a Surface RT tablet (so, limited to RT API) I want to access mainpage methods and UI elements from other classes.</p>
  
  <p>Creating a new instance works, like this:</p>
  
  <pre><code>MainPage mp = new MainPage();
  mp.PublicMainPageMethod();
  mp.mainpageTextBlock.Text = "Setting text at runtime";
  </code></pre>
  
  <p>in that it exposes the methods / UI elements, but this can't be the proper procedure.  </p>
  
  <p>What is the best practice for accessing methods and modifying UI elements on the main page at runtime, from other classes?  There are several articles about this for Windows Phone but I can't seem to find anything for Windows RT.</p>