title: How to pass a parameter from one Page to another Page in Xamarin.Forms?
body: <p>I want to send a value when I press a button in a form to another form through the <em>MVVM pattern</em>.</p>
  
  <p>This is the XAML file</p>
  
  <pre><code> &lt;Button x:Name="myButton"
              Text="RandomButton"
              TextColor="#000000"
              BackgroundColor="{x:Static local:FrontEndConstants.ButtonBackground}"
              Grid.Row="2" Grid.Column="0"
              Grid.ColumnSpan="3"
              Command="{Binding NewPage}"
              CommandParameter="100"&gt;     
  &lt;/Button&gt;
  </code></pre>
  
  <p>And  this is my <code>ModelView class</code> where I get redirected to another form.</p>
  
  <pre><code>class JumpMVVM :INotifyPropertyChanged
      {
          public event PropertyChangedEventHandler PropertyChanged;
  
          private INavigation _navigation;
  
          public ICommand NewPage
          {
              get
              {
                  return new Command(async () =&gt;
                  { 
                      await _navigation.PushAsync(new Page2()); // HERE
                  });
              }
          }
  
          public JumpMVVM() { }
  
          public JumpMVVM(INavigation navigation)
          {                
              _navigation = navigation;                
          }
  </code></pre>
  
  <p>The jump works. How can I send that "CommandParameter" to "Page2" ?</p>
  
  <p>Thanks,
  Dragos</p>