title: GestureRecognizers on StackLayout does not recognizes the taps/clicks in Xamarin Cross-Platform
body: <p>I am new to Xamarin Platform. I have created a grid inside which I have StackLayout on which I am applying GestureRecognizers. I am deploying the app using Xamarin Live Player on Android platform.
  I am using latest version of Xamarin.Forms 3.1</p>
  
  <p>The tap is not getting detected/executed. Can anyone please help me on this?
  I have tried following things based on various posts on google.</p>
  
  <ul>
  <li>Using InputTransparent="True" on StackLayout</li>
  <li>Removing Background color of StackLayout</li>
  <li>Applying GestureRecognizers on every control</li>
  </ul>
  
  <p>None of the above resolved the problem.</p>
  
  <p>Here is my code snippet:</p>
  
  <pre><code>&lt;Grid x:Name="GridMain"&gt;
          &lt;Grid.RowDefinitions&gt;
              &lt;RowDefinition Height="*" /&gt;
              &lt;RowDefinition Height="Auto" /&gt;
          &lt;/Grid.RowDefinitions&gt;
  
  
          &lt;!-- PANEL 1 --&gt;
  
          &lt;ContentView
          Grid.Row="0"
          IsVisible="True" BackgroundColor="White" x:Name="MainView"&gt;
          &lt;/ContentView&gt;
          &lt;Grid ColumnSpacing="0" RowSpacing="0" Grid.Row="1"&gt;
              &lt;Grid.ColumnDefinitions&gt;
                  &lt;ColumnDefinition Width="*" /&gt;
              &lt;/Grid.ColumnDefinitions&gt;
              &lt;StackLayout Orientation="Vertical" x:Name="Store" InputTransparent="True" HorizontalOptions="Center" Padding="20" Margin="-20,-10,-20,-17" Grid.Column="0"&gt;
                  &lt;StackLayout.GestureRecognizers&gt;
                      &lt;TapGestureRecognizer Tapped="TapGestureRecognizer_Tapped" NumberOfTapsRequired="1" /&gt;
                  &lt;/StackLayout.GestureRecognizers&gt;
                  &lt;Image x:Name="baseline_store_black_24dp" IsVisible="True" Source="baseline_store_black_24dp.png" HeightRequest="22" WidthRequest="25" Margin="0,0,0,-2"&gt;
                  &lt;/Image&gt;
                  &lt;Label Margin="0" x:Name="tab_home" Text="Store" FontSize="Micro"/&gt;
              &lt;/StackLayout&gt;
      &lt;/Grid&gt;
  &lt;/Grid&gt;
  </code></pre>
  
  <p>EDIT:
  Here is my code behind for TapGestureRecognizer_Tapped</p>
  
  <pre><code>private void TapGestureRecognizer_Tapped(object sender, EventArgs e)
     {
          var page = new Home();
          MainView.Content = page.Content;
  
      }
  </code></pre>