title: Change Frame Source Wpf
body: <p>How can I possibly change the source of a frame from other page when I click a button in an active page.</p>
  
  <p>What I'm doing is In page1.xaml, I have a frame with a source displaying page2.xaml.Once I click a button in page2.xaml, I want to update the source of frame in page1.xaml to page3.xaml and the frame should display page3.xaml instead of page2.xaml.</p>
  
  <p>As of now, I tried using</p>
  
  <pre><code>page1 pg1 = new page1();
  pg1.frame.source = new Uri("page3.xaml",UriKind.Relative);
  </code></pre>
  
  <p>But it didn't display page3.xaml in the frame in page1.xaml.</p>
  
  <p>I also tried </p>
  
  <pre><code>page1 pg1 = new page1();
  pg1.frame.Navigate(new Uri("page3.xaml",UriKind.Relative));
  </code></pre>
  
  <p>but didn't work as well, page2.xaml remains the display of the frame.</p>