views:

249

answers:

1

I want my listbox to never scroll. It's easy to just hide/disable the scrollbars, but mousewheel/arrow keys still cause a scroll when the items in the ListBox exceed its boundaries. There HAS to be some way to tell the ListBox that it just can't ever scroll....right?

+1  A: 

You may be able to delete the scroll view? scroll bar from the ListBox template. see if that works

Brian Leahy
This answer is correct: Editing the ListBox template and removing the ScrollViewer from it will actually accomplish what was requested. But I too am puzzled about why you would ever want to do this in the first place.
Ray Burns
I need to be able to detect a certain condition in which the Listbox cannot scroll, it's not really bizarre. It is synced with a rendered component and if that component is currently not allowed to scroll, either can this listbox.
Kamiikoneko