title: Changing page from another page in main window wpf mvvm c#
body: <p>I'm using mvvmlight framework for wpf.
  I have main window where I put my frame (firstLoadedPage is just an example):</p>
  
  <pre><code>        &lt;Frame Source="firstLoadedPage" /&gt;
  </code></pre>
  
  <p>I want to change my page to another one when I click button in </p>
  
  <blockquote>
    <p>first loaded page</p>
  </blockquote>
  
  <p>but I have no idea how can I achieve it.
  I've tried bind property like this to frame source:</p>
  
  <pre><code>public static string _myFrameSourcePath = firstLoadedPage
  public string MyFrameSourcePath
  {
      get { return _myFrameSourcePath; }
      set {
         _myFrameSourcePath = value;
         RaisePropertyChanged("MyFrameSourcePath");
      }
  }
  </code></pre>
  
  <p>and then change value of _myFrameSourcePath when I click button in firstLoadedPage. It doesn't work so I tried change MyFrameSourcePath to static and then change value of MyFrameSourcePath instead of _myFrameSourcePath in Page. It also doesn't work.</p>
  
  <p>Can somebody tell me how can I change my page placed in frame source in MainWindow when I click button inside this page to change current page to another?</p>