Stock Trader RI - how to add scrolling to the ListView controls ?

Topics: Prism v4 - WPF 4
Jul 31, 2012 at 12:00 PM


I am mimicking the list-view of the Stock Trader RI,

and I am not sure how I should add scrolling capability to the List-View...

Can anyone help ?

Everything I have tried (setting 'ScrollViewer.CanContentScroll="True"' or setting ScrollViewer.VerticalScrollBarVisibility="Visible") did not help...

Jul 31, 2012 at 3:01 PM


Based on my understanding, you should be able to see the scroll bar in your ListView control when setting those properties to the ScrollViewer attached property.

I believe, you could find useful information regarding the use of scrolling in the following resources:

I hope hope you find this handy,

Agustin Adami

Jul 31, 2012 at 5:23 PM


Apparently, the problem I had was that my view that contained the 'List View' was part of a larger view.

The larger view had a StackPanel with View1 and View2 in it, and apparently, 

if View2 is part of a StackPanel - the ListView in it does not draw the scrollbar.

I fixed this by changing the StackPanel in my parent view to a grid with row definitions.