I know how to add text blocks dynamically using the following code:
TextBlock tb = new TextBlock();
tb.Width = 200; tb.Height = 60; tb.Text = "testing";
Canvas.SetLeft(tb, 10); Canvas.SetTop(tb, 10);
canvas.Children.Add(tb);
What I'd like to know is how to add them dynamically everytime the user clicks a button. So if the user presses the "Add Label" button 5 times, I want to dynamically add 5 textblocks to the canvas.