Kamiikoneko
Kamiikoneko

Reputation: 825

How to stop a WPF Listbox from scrolling

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?

Upvotes: 1

Views: 1550

Answers (1)

Brian Leahy
Brian Leahy

Reputation: 35527

You may be able to delete the ScrollViewer scroll bar from the ListBox Template property. See if that works.

Upvotes: 2

Related Questions