Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding a Scrollbar to the WrapPanel

How can I add a scrollbar to the wrappanel control in WPF. Some of my controls are cutting off width wise due to the no scrollbar.

like image 361
azamsharp Avatar asked Dec 11 '08 16:12

azamsharp


1 Answers

The ScrollViewer will be helpful for you in this situation. Otherwise, you'll need to use the ScrollBar control and manually control what's visible.

Usage example for the scrollviewer:

<DockPanel>
   <ScrollViewer VerticalScrollBarVisibility="Auto">
       <StackPanel />
   </ScrollViewer >
</DockPanel>
like image 104
Stephen Wrighton Avatar answered Sep 27 '22 20:09

Stephen Wrighton