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 ScrollViewer.VerticalScrollBarVisibility="Auto" />
默认可见
我认为默认值不是“可见”。我认为是“自动”。乔恩想将其设置为“隐藏”。