简体   繁体   中英

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

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

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.

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

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

Not Windows 8 exactly, but still XAML.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM