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.
Asked
Active
Viewed 1.4k times
1 Answers
17
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>

Stephen Wrighton
- 36,783
- 6
- 67
- 86
-
1Of course, you can place your wrap panel inside the scrollviewer. – Dominic K Aug 27 '10 at 16:48