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一个ScrollViewer附加属性,可让您访问滚动功能。比较VerticalOffset与ScrollableHeight。如果VerticalOffset== 0 那么你在ListBox. 如果VerticalOffset==ScrollableHeight则您位于 ListBox 的底部。我建议将此逻辑添加到 ScrollChanged 处理程序。
ListBox
ScrollViewer
VerticalOffset
ScrollableHeight