title: How can I set custom control binding to parent view model property in Xamarin Forms when using a ListView?
body: <p>In Xamarin Forms, I defined a custom data template like so:</p>
  
  <pre><code>&lt;DataTemplate x:Key="MyControlDataTemplate"&gt;
       &lt;ViewCell&gt;
          &lt;controls:MyControl/&gt;
      &lt;/ViewCell&gt;
  &lt;/DataTemplate&gt;
  </code></pre>
  
  <p>This snippet belongs to a <code>ListView</code> in <code>MainPage.xaml</code> which has its binding context set to <code>MainPageViewModel.cs</code></p>
  
  <p>Inside <code>MyControl</code>, I want to bind to a property of <code>MainPageViewModel</code>. </p>
  
  <pre><code>&lt;Label.GestureRecognizers&gt;
      &lt;TapGestureRecognizer Command="{set binding here to MainPageViewModel property}" /&gt;
  &lt;/Label.GestureRecognizers&gt;
  </code></pre>
  
  <p><code>MainPageViewModel</code> has this command property:</p>
  
  <pre><code>public Command&lt;MyItem&gt; LabelTappedCommand { get; set; }
  </code></pre>
  
  <p>The idea is to create a single <code>Command</code> object which gets shared between each cell by also setting the <code>CommandParameter</code> property, but I'm stuck with the <code>Command</code> property right now.</p>
  
  <p>Is this possible?</p>