Disable Silverlight ListBox vertical scrollbar display

I have a ListBox that displays variable height elements. I want to show as many elements as fit in free space without showing a vertical scrollbar. Besides the operation in the ListBox item template, is there a way to show only the number of items that will fit without scrolling?

+5
source share
2 answers
 <ListBox ScrollViewer.VerticalScrollBarVisibility="Auto" /> 

displayed by default

+13
source

I do not think the default is Visible. I think this is Auto. John wanted to set it to Hidden.

+3
source

All Articles