How does one implement pull-to-refresh with a LongListSelector in Windows Phone 8?

前端 未结 6 1917
花落未央
花落未央 2021-02-11 06:30

I am writing a new WP8 app using the off-the-shelf LongListSelector that is shipped in the Microsoft.Phone.Controls assembly. Can anyone provide a code example that implements p

6条回答
  •  感动是毒
    2021-02-11 06:37

    If you really must do this (see answer by Miguel Rochefort) then details can be found at http://blogs.msdn.com/b/jasongin/archive/2011/04/13/pull-down-to-refresh-a-wp7-listbox-or-scrollviewer.aspx

    Basically, the ScrollViewer has hidden/undocumented states that allow for detecting "compression" at the top or bottom of the list and you can use this to trigger the loading.

提交回复
热议问题