title: Preloading a Page before Navigating to it WPF
body: <p>My WPF app consists of a <code>NavigationWindow</code>, and then a set of <code>Page</code>s defined as separate xaml files.  The NavigationWindow loads and displays the various pages in turn.</p>
  
  <p>My problem is that loading the pages is expensive and may fail.  Thus, I want to preload the page in the background, and then only call <code>Navigate()</code> once the page has finished loading.</p>
  
  <p>In pseudocode what I would want is</p>
  
  <pre><code>    Page nextPage;
      try
      {
      nextPage = LoadPageFromURI(new URI(...));
      }
      catch
      {
  /// constructor of the page threw an exception ... load a different page
      }
  
      myNavigationWindow.Navigate(nextPage);
  </code></pre>
  
  <p>I can't however find framework functions to do what I want.  Could someone who knows WPF better give me a hand?  Thanks you!</p>