- In my C# WPF windows Application I used Group Box with some labels and text boxes inside it to insert some data
- I created a button called (add) beside one of text boxes in that Group Box
- I want when I press (Add) button :
- Group Box Expand in size and
- a new Text Box appear below the first one to insert more data
- (Add) button appear beside the new text box
- I wish you could Help me ..Thanks

See if this is what you are wanting, I used
StackPanel'sand aDockPanelwhich will grow as content is added, I also added the 5 extraTextBox'sandTextBlock'swith a visibility of collapsed which means that they do not take up any space when not visible. I added them to List’s which I then check visiblity when you click your button making the appropriate controls visible at that time.MainWindow.xaml
MainWindow.xaml.cs