How to add a ScrollBar to a Stackpanel

Shamim Hafiz picture Shamim Hafiz · Jun 6, 2011 · Viewed 99.8k times · Source

In my WPF application, I have a Stackpanel containing several controls inside them. How can I add a Scrollbar to this stackpanel.

Answer

Joey picture Joey · Jun 6, 2011

Put it into a ScrollViewer.