title: xamarin forms - bind TapGestureRecognizer to code-behind rather than view model
body: <p>I realise this breaks the MVVM pattern, but is it possible to bind a TapGestureRecognizer to a method in the XAML.cs code behind rather than the view model?</p>
  
  <pre><code>  &lt;Image.GestureRecognizers&gt;
        &lt;TapGestureRecognizer 
          Command="{Binding Path=BindingContext.SetImageCommand, Source={x:Reference ThePage}}"
          CommandParameter="{Binding .}"/&gt;
    &lt;/Image.GestureRecognizers&gt;
  </code></pre>