title: Adding long press gesture recognizer in Xamarin forms
body: <p>Could you please let me know how can I recognize long press gesture in Xamarin Forms application?</p>
  
  <p>This is my xaml page which i created referring to this thread: <a href="https://github.com/akgulebubekir/Xamarin.Forms.DataGrid" rel="nofollow noreferrer">Xamarin.forms.DataGrid</a></p>
  
  <pre><code>&lt;ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
  xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
  xmlns:local="clr-namespace:DataGridSample_01"
  xmlns:dg="clr-namespace:Xamarin.Forms.DataGrid;assembly=Xamarin.Forms.DataGrid"
  x:Class="DataGridSample_01.MainPage"&gt;
  
   &lt;ContentView BackgroundColor="White" Padding="20" &gt;
    &lt;dg:DataGrid ItemsSource="{Binding Data}" SelectionEnabled="True" RowHeight="70" HeaderHeight="50" BorderColor="#CCCCCC" HeaderBackground="#E0E6F8" ActiveRowColor="#8899AA"&gt;
       &lt;dg:DataGrid.Columns&gt;
       &lt;dg:DataGridColumn Title="Logo" PropertyName="Logo" Width="50" SortingEnabled="False"&gt;
          &lt;dg:DataGridColumn.CellTemplate&gt;
             &lt;DataTemplate&gt;
                &lt;Image Source="{Binding}" HorizontalOptions="Center" VerticalOptions="Center" Aspect="AspectFit" HeightRequest="60" /&gt;
             &lt;/DataTemplate&gt;
          &lt;/dg:DataGridColumn.CellTemplate&gt;
       &lt;/dg:DataGridColumn&gt;
       &lt;dg:DataGridColumn Title="Team" PropertyName="Name" Width="2*" &gt;
       &lt;/dg:DataGridColumn&gt;
       &lt;dg:DataGridColumn Title="Win" PropertyName="Win" Width="2*"&gt;
          &lt;dg:DataGridColumn.CellTemplate&gt;
             &lt;DataTemplate&gt;
                &lt;Picker x:Name="Fruits" Title="Fruits" HorizontalOptions="FillAndExpand"&gt;
                   &lt;Picker.Items&gt;
                      &lt;x:String&gt;Apple&lt;/x:String&gt;
                      &lt;x:String&gt;Mango&lt;/x:String&gt;
                      &lt;x:String&gt;PineApple&lt;/x:String&gt;
                      &lt;x:String&gt;Orange&lt;/x:String&gt;
                   &lt;/Picker.Items&gt;
                &lt;/Picker&gt;
             &lt;/DataTemplate&gt;
          &lt;/dg:DataGridColumn.CellTemplate&gt;
       &lt;/dg:DataGridColumn&gt;
       &lt;dg:DataGridColumn Title="Loose" PropertyName="Loose"  Width="1*"&gt;                    
       &lt;/dg:DataGridColumn&gt;
       &lt;dg:DataGridColumn PropertyName="Home"&gt;
          &lt;dg:DataGridColumn.FormattedTitle&gt;
             &lt;FormattedString&gt;
                &lt;Span Text="Home" ForegroundColor="Black" FontSize="13" FontAttributes="Bold"/&gt;
                &lt;Span Text=" (win-loose)" ForegroundColor="#333333" FontSize="11" /&gt;
             &lt;/FormattedString&gt;
          &lt;/dg:DataGridColumn.FormattedTitle&gt;
       &lt;/dg:DataGridColumn&gt;
       &lt;dg:DataGrid.RowsBackgroundColorPalette&gt;
          &lt;dg:PaletteCollection&gt;
             &lt;Color&gt;#FFFFFF&lt;/Color&gt;
          &lt;/dg:PaletteCollection&gt;
       &lt;/dg:DataGrid.RowsBackgroundColorPalette&gt;
    &lt;/dg:DataGrid&gt;
   &lt;/ContentView&gt;
  &lt;/ContentPage&gt;
  </code></pre>
  
  <p>I want to add a Long Press Gesture recognizer on Image Control.I tried to do it referring to this <a href="https://stackoverflow.com/questions/43569515/how-to-make-long-press-gesture-in-xamarin-forms">StackOverflow Thread</a>.But it doesn't seem to work.</p>
  
  <p>I am very new to this.
  Any help is very much appreciated.</p>