title: WPF application send parameters (MvvmLight with Page navigation)
body: <p>I have a WPF application with Page navigation. I use MvvmLight toolkit. I have two pages: <code>FirstPage</code> (default page) and <code>SecondPage</code>. On <code>FirstPage</code> I navigate to <code>SecondPage</code>.</p>
  
  <p>I want to pass a parameter to <code>SecondPage</code>.</p>
  
  <pre><code>//code on FirstPage
  NavigationService.NavigateTo(new Uri("SecondPage.xaml", UriKind.Relative));
  Messenger.Default.Send&lt;string&gt;("my mess");
  
  //code on SecondPage
  //constructor
  public SecondPage()
  {
    Messenger.Default.Register&lt;string&gt;(this, GetMess);
  }
  
  private void GetMess(string obj)
  {
  
  }
  </code></pre>
  
  <p>When you first start it's not working. I can create an instance of SecondPage,</p>
  
  <pre><code>PageSecond page = new  PageSecond();
  </code></pre>
  
  <p>but it is not beautiful. Help me please.</p>