How can I detect reaching the end of a ScrollViewer item (Windows 8)?

 ̄綄美尐妖づ 提交于 2019-12-10 16:19:28

问题


I need to do some work when the user scrolls to the end of a ScrollViewer in a Windows 8 'Metro UI' app that uses .xaml with C# behind-code. Alternatively, the ScrollViewer has snap-points enabled, so detecting a "snapping" event will also work.

Thanks


回答1:


You can bind your ListView to collection that implements ISupportIncrementalLoading.

The extra items will be loaded automatically when there is an empty space to fill.




回答2:


Maybe this could help: http://mikaelkoskinen.net/winrt-xaml-automatically-scrolling-listview-to-bottom-and-detecting-when-listview-is-scrolled

I'm not sure it works when getting back from snapped-mode, haven't tried it yet.

Cheers




回答3:


Maybe this would be helpful - Add Items to ListBox when scroll reaches the end in Windows phone?

Not Windows 8 exactly, but still XAML.



来源:https://stackoverflow.com/questions/12003326/how-can-i-detect-reaching-the-end-of-a-scrollviewer-item-windows-8

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!