title: How to pass parameter to command
body: <p>I have Xamarin Forms solution and on one page there is list with images. When image is clicked, I would like to trigger procedure witch has image path as parameter. In xaml I define image with:</p>
  
  <pre><code>&lt;Image Source="{Binding ImagePath}"
          WidthRequest="30" HeightRequest="30"
          HorizontalOptions="CenterAndExpand" VerticalOptions="CenterAndExpand" &gt;
    &lt;Image.GestureRecognizers&gt;
      &lt;TapGestureRecognizer Command="{Binding TapImageCommand}" CommandParameter="{Binding ImagePath}" /&gt;
    &lt;/Image.GestureRecognizers&gt;
  &lt;/Image&gt;
  </code></pre>
  
  <p>and TapImageCommand is defined in view model's constructor as:</p>
  
  <pre class="lang-cs prettyprint-override"><code>TapImageCommand = new Command&lt;string&gt;(ImagePath =&gt;
  {
      OnImageTapped(ImagePath);
  });
  </code></pre>
  
  <p>and TapImageCommand is defined with:</p>
  
  <pre class="lang-cs prettyprint-override"><code>public ICommand TapImageCommand { get; set; }
  </code></pre>
  
  <p>Problem is OnImageTapped is never triggered. What am I doing wrong?</p>