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

Topics: Prism v4 - WPF 4
Jul 31, 2012 at 11:00 AM

Hi,

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...

Developer
Jul 31, 2012 at 2:01 PM

Hi,

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
http://blogs.southworks.net/aadami

Jul 31, 2012 at 4:23 PM

Thanks.

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.