title: UWP access existing page instance
body: <p>i'm developing an UWP app with <code>NavigationView</code> for navigation between <code>Page</code>.</p>
  
  <p>One <code>ConnectionPage</code> is for opening and managing an socket connection, so there are methodes like <code>SendCommand</code> and <code>Receive</code> and so on. The other <code>CameraPage</code> needs to access this methodes. If i navigate to <code>ConnectionPage</code> an instance of this class is createt as normal, if i navigate to <code>CameraPage</code> this class is created, everything as it should be.</p>
  
  <p>My question now ist, how can i use the connection and methodes of the <code>ConnectionPage</code> in my <code>CameraPage</code>?</p>
  
  <p><strong>MainPage.xaml.cs navigation</strong></p>
  
  <pre><code>    private void NavView_Navigate(NavigationViewItem item) {
          switch (item.Tag) {
              case "home":
                  rootFrame.Navigate(typeof(HomePage)); break;
              case "connection":
                  rootFrame.Navigate(typeof(ConnectionPage)); break;
              case "camera":
                  rootFrame.Navigate(typeof(CameraPage)); break;
          }
      }
  </code></pre>
  
  <p>My approach in previous projects was to pass the instance of a <code>Connection</code> class to the constructor of classes that needs it.</p>
  
  <p>Thanks to all</p>