title: How to navigate to another wpf page
body: <p>So I tried to navigate to another wpf page but it doesn't work at all. Here's what I've been using:</p>
  
  <p>C#:</p>
  
  <pre><code>    private void btnNext_Click(object sender, RoutedEventArgs e)
      {
          Doelen nextPage = new Doelen();
          this.NavigationService.Navigate(nextPage);
      }
  </code></pre>
  
  <p>XAML:</p>
  
  <pre><code>    &lt;Button x:Name="btnNext" Content="Volgende" Margin="0,10,0,0" Click="btnNext_Click"/&gt;
  </code></pre>
  
  <p>The big problem here is that Visual Studio says that there is no <em>Navigate</em> in <em>NavigationService</em>.</p>
  
  <p>Can anyone tell me what I`m doing wrong?</p>
  
  <p>For full code see picture below:
  <a href="https://i.stack.imgur.com/OGlmE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OGlmE.png" alt="enter image description here"></a></p>