title: Dynamically add UI elements to StackPanel after button pressed
body: <p>This is my first question here :)
  I'm not a professional programmer, I'm only 18 and I haven't studied at university or anything, so please don't hate me if I say something stupid :p</p>
  
  <p>I'm making (or rather trying to make...) an app for Windows 10 UWP and a piece of my xaml code looks like this:</p>
  
  <pre><code>&lt;Grid Grid.Row="1" Grid.Column="1"&gt;
              &lt;Grid.RowDefinitions&gt;
                  &lt;RowDefinition Height="12"/&gt;
                  &lt;RowDefinition Height="Auto"/&gt;
                  &lt;RowDefinition Height="12"/&gt;
              &lt;/Grid.RowDefinitions&gt;
              &lt;Rectangle Margin="0" Grid.Row="1" Fill="White" RadiusX="7" RadiusY="7"/&gt;
  
              &lt;Grid Grid.Row="1" Margin="12,6"&gt;
                  &lt;Grid.ColumnDefinitions&gt;
                      &lt;ColumnDefinition Width="*"/&gt;
                      &lt;ColumnDefinition Width="*"/&gt;
                  &lt;/Grid.ColumnDefinitions&gt;
  
                  &lt;StackPanel&gt;
  
                          &lt;TextBox x:Name="textProduct" Margin="0,6,6,6" TextWrapping="Wrap"  VerticalAlignment="Top" BorderBrush="#FFCECED2" FontFamily="Segoe UI Light" FontSize="17" PlaceholderText="Produkt..." BorderThickness="1"/&gt;
  
                  &lt;/StackPanel&gt;
  
                  &lt;StackPanel Grid.Column="1"&gt;
                      &lt;TextBox x:Name="textAdditionalInfo" Margin="6,6,0,6" TextWrapping="Wrap"  VerticalAlignment="Top" BorderBrush="#FFCECED2" FontFamily="Segoe UI Light" FontSize="17" PlaceholderText="Dodatkowe info..." BorderThickness="1"/&gt;
                  &lt;/StackPanel&gt;
  
              &lt;/Grid&gt;
  </code></pre>
  
  <p>I also have an app bar at the bottom with Add and Delete buttons. I'd like to be able to dynamically add another line of TextBoxes to both StackPanels every time the user presses the Add button and Delete one every time they hit the Delete button. Unfortunetely I have no idea how to achieve this. I've tried to find an answer and I think this can be done by using UserControl, however I have no idea how to implement this.</p>
  
  <p>I hope it's not too comlicated to do, because I don't want to seeem like a person that asks other people to do all my work for me...</p>
  
  <p>If it's a big problem, then it doesn't even need to support deleting the TextBoxes.</p>
  
  <p>I hope you understand what I mean. I'm not native english so sorry for any mistakes  ;)</p>