title: How to create INavigationService for WPF. Navigate with custom Windows loaded from XML
body: <p><strong>I'm trying to build a service that enables custom Windows to navigate in WPF</strong>. I have previously saved in a XML giving a Action "Navigate" with a parameter string that contains the next custom Window. What I'm trying to do is to fire the button that is located in my Custom Window, read the string and give it my service that will navigate to another custom Window.</p>
  
  <p><img src="https://i.stack.imgur.com/NZmSB.png" alt="enter image description here"></p>
  
  <h3>Difficulties what I have implementing this Service.</h3>
  
  <ol>
  <li><em>NavigateWindow</em> doesn't help me to solve the problem.</li>
  <li><em>Frame</em> control doesn't help me to. This button can be in every place.</li>
  <li>I didn't found like <strong>PhoneApplicationFrame</strong> in Windows Phone to navigate between Windows.</li>
  <li><p>This give me a error.</p>
  
  <p><code>NavigationWindow navigation = new NavigationWindow();
   navigation.Navigate(new Window1());</code></p></li>
  <li><p>And this too</p>
  
  <p><code>NavigationWindow navigation = new NavigationWindow();
   navigation.Navigate(new Uri("/Window1.xaml"), UriKind.Relative);</code></p></li>
  </ol>
  
  <p>Thanks for all!</p>