title: how to delete a selected label from multiple labels in an application using tapGesture (Xamarin.Forms)
body: <p>I have a button that creates a label each time it's clicked, let's say I clicked it 10 times, so now I have 10 labels created. How do I delete a random label the one I tap on?</p>
  
  <pre><code>PS: my labels are added to a stackLayout
  </code></pre>
  
  <p>The idea of my application is to create a todo list. I have an entry box and a button. I type what I want to do in the entry box, then click on the button and a label is created with which I just typed in the entry. When I'm done with something i want to tap on a specific label and remove it, how is that possible. Any help?</p>
  
  <p>Code:</p>
  
  <pre><code>var entry = new Entry();
  entry.Placeholder = "type here";
  entry.BackgroundColor = Color.White;
  entry.PlaceholderColor = Color.Gray;
  var newButton = new Button { Text = "+", BackgroundColor = Color.Purple, FontSize = Device.GetNamedSize(NamedSize.Small, typeof(Button)), };
  StackLayout stackLayout = new StackLayout();
  stackLayout.Children.Add(entry);
  stackLayout.Children.Add(newButton);
  this.Content = stackLayout;
  
  var tapGestureRecognizer = new TapGestureRecognizer();
  tapGestureRecognizer.Tapped += labelClick;
  newButton.Clicked += (sender, args) =&gt; { label = new Label();
  label.BackgroundColor = Color.White;
  label.TextColor = Color.Black;
  label.Text = entry.Text;
  entry.Text = "";
  stackLayout.Children.Add(label);
  label.GestureRecognizers.Add(tapGestureRecognizer);    
  </code></pre>