I have a ListBox which displays items of variable height. I want to show as many items as will fit in the available space, without showing a vertical scrollbar. Other than surgery on the ListBox item template, is there a way to only show the number of items which will fit without scrolling?
Asked
Active
Viewed 6,643 times
5
-
2Does Silverlight not have ScrollViewer.VerticalScrollbarVisibility, Jon? – Matt Hamilton Oct 07 '08 at 23:06
-
Matt, I wish you'd added that as an answer so I could have voted for you... – Jon Galloway Oct 09 '08 at 15:34
2 Answers
13
<ListBox ScrollViewer.VerticalScrollBarVisibility="Auto" />
the default is visible

Brian Leahy
- 34,677
- 12
- 45
- 60
3
I don't think the default is "Visible". I think it's "Auto". Jon wanted to set it to "Hidden".