Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我希望我ListBox永远不会滚动。隐藏/禁用滚动条很容易,但是当项目ListBox超出其边界时,鼠标滚轮/箭头键仍然会导致滚动。必须有某种方法可以告诉ListBox它它永远无法滚动......对吗?
ListBox
您可以从属性中删除ScrollViewer滚动条。ListBox Template看看这是否有效。
ScrollViewer
Template