Introduction Here in this article I am explaining that how you can add controls to a panel. As we have used StackPanel. StackPanel arranges the content either vertically or horizontally. The by default setting of the StcakPanel is Vertical. StackPanel generally Stacks the element. Firstly we will add a StackPanel. In StackPanel we will add a TextBlock and a Tab control. When you clicked the Tab control, a Button control should be added to the StackPanel. The Implementation needs a StackPanel, TextBlock and Tab control.