title: Xamarin.Forms Navigate to another page using ViewModel
body: <p>I have several ContentPages and I want to navigate from one to another at the click of an element in the page. I have my ViewModel class:</p>
  
  <pre><code> class JumpVM : INotifyPropertyChanged
      {
          public event PropertyChangedEventHandler PropertyChanged;
          private INavigation _navigation;
  
          public ICommand NewPage
          {
              get
              {
                  return new Command(async () =&gt;
                  {
                      await _navigation.PushAsync(new MySettingsPage());
                  });
              }
          }
  
          public JumpVM() { }
  
          public JumpVM(INavigation navitation)
          {
              _navigation = navitation;
          }
      }
  </code></pre>
  
  <p>And this is one of my pages( for the sake of space, i put only the relevant code):</p>
  
  <pre><code>BindingContext = new JumpVM(this.Navigation);
  </code></pre>
  
  <p>....</p>
  
  <pre><code> Image fbInvite = new Image
              {
                  Source = ImageSource.FromResource(Constants.ASSETLOCATION + ".facebookInviteIcon.png"),
                  HorizontalOptions = LayoutOptions.Center
              };
              fbInvite.GestureRecognizers.Add(new TapGestureRecognizer(sender =&gt;
                  {
                      //navigation in the method below
                      FaceboonInviteFriends();
                      fbInvite.Opacity = 0.8;
                      fbInvite.FadeTo(1);
                  }));
  </code></pre>
  
  <p>I want when I click the image, to execute the Command in the JumpVM class and navigate to the page there. How can I do that?</p>