title: Include a text field inside an alert dialog
body: <p>When a user clicks an "Add" button, I would like an alert dialog to be shown to the user, allowing them to enter in a store number into an entry field. I have researched into this but have not found any clear solution regarding this for Xamarin.Forms.</p>
  
  <p>View my code below on what I have tried. I added an entry field in my Xaml and made it invisible. Then I added a tap gesture so that once my FAB is tapped, the entry field now becomes visible in the alert dialog. This does not work though.</p>
  
  <p>Xaml:</p>
  
  <pre><code>&lt;Image
      Grid.Column="0" Grid.Row="0"
      Source="add.png"
      HorizontalOptions="EndAndExpand"
      VerticalOptions="EndAndExpand"
      Margin="0,0,30,30"
      HeightRequest="45"
      WidthRequest="45"&gt;
      &lt;Image.GestureRecognizers&gt;
          &lt;TapGestureRecognizer 
              Command="{Binding clickNewCard}"
              CommandParameter="3"
              Tapped="TapGestureRecognizer_Tapped"/&gt;          
      &lt;/Image.GestureRecognizers&gt;
  &lt;/Image&gt;
  
  &lt;Entry x:Name="StoreField" InputTransparent="True" IsVisible="False"/&gt;
  </code></pre>
  
  <p>Xaml.cs</p>
  
  <pre><code>private async void TapGestureRecognizer_Tapped(object sender, EventArgs e)
  {
      if (e != null)
      {
          StoreField.IsVisible = true;
          await DisplayAlert("Enter Store Number", StoreField.Text, "Add");
      }        
  }
  </code></pre>