title: Dynamically control the number of buttons in WPF
body: <p>I'm working with WPF recently. Now, i'm facing a problem.</p>
  
  <p>I have a button "ADD", every time click on this will add a new row with some contents. Those contents are shown below-</p>
  
  <p>
                      
                          </p>
  
  <pre><code>                    &lt;TextBox Text="{Binding Name}" Margin="10,10" Height="20"  &gt;&lt;/TextBox&gt;
                      &lt;TextBox Text="{Binding City}" Margin="10,10" Height="20" &gt;&lt;/TextBox&gt;
                      &lt;TextBox Text="{Binding Age}" Margin="10,10" Height="20"&gt;&lt;/TextBox&gt;
                      &lt;TextBox Text="{Binding Count}" Margin="10,10" Height="20" &gt;&lt;/TextBox&gt;
                      &lt;Button Content="M1" Margin="10,10" Height="20"/&gt;
                      &lt;Button Content="M2" Margin="10,10" Height="20"/&gt;
                      &lt;Button Content="M3" Margin="10,10" Height="20"/&gt;
                  &lt;/WrapPanel&gt;
              &lt;/Grid&gt;
  </code></pre>
  
  <p>Here, at the end there are three buttons M1,M2,M3. But, I don't need this all three buttons every time. I may need only M1 or only M2 or only M3 or M1,M2 etc.</p>
  
  <p>How can I do this in c#? 
  Actually i don't even know, am i in the right way?</p>
  
  <p>Thanks in advance.</p>