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.
我正在使用带有 wrappnael 的列表框以网格方式保存图像列表。我还使用鼠标拖动行为来拖放列表框中的项目。但我无法垂直向上或向下拖动项目,因为 ListBox 中有垂直滚动。如何在不影响滚动行为的情况下垂直拖动项目?
尝试:
<ListBox ScrollViewer.VerticalScrollBarVisibility="Disabled"></ListBox>
希望它的帮助。
如果您不需要在 中选择任何内容ListBox并且不希望滚动的能力,您可以随时将您的ListBox控件替换为ItemsControl. 那么你就完全没有滚动的问题了。
ListBox
ItemsControl