In my WPF application, I have a Stackpanel containing several controls inside them. How can I add a Scrollbar to this stackpanel.
It works like this:
TextBox tb = new TextBox(); tb.TextChanged += new TextChangedEventHandler(TextBox_TextChanged); stackPanel1.Children.Add(tb);