Search code examples
silverlightsilverlight-2-rc0

Prevent Silverlight ListBox vertical scrollbar from being displayed


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?


Solution

  •  <ListBox ScrollViewer.VerticalScrollBarVisibility="Auto" /> 
    

    the default is visible