Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Dynamically resize a Stack panel with its contents.

$
0
0

Hi,

I want to resize the contents in a stack panel, as and when the number of contents increase or decreases.

For example in a stack panel, I have 2 labels and a textbox fitting in to this stack panel.

Now if I add one more label to this stack panel dynamically, I need this newly added label along with the other 2 labels and textbox to fit in to this Stack panel.


Viewing all articles
Browse latest Browse all 18858

Trending Articles