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

前端 未结 6 1914
花落未央
花落未央 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:44

    As the WP8 LLS doesn't use a scrollviewer, I guess you will have to inspect the UI tree to get a hold on the viewport control and see what you can do with ViewportControl.Viewport property ...

    Oh ... the twitter application is now using the pull to refresh interaction. I like the UI guidelines of the WP platform but rules, once mastered, are made to be broken ;)

    This post here can give you hints on how to get the viewport control and retreive the scrolling offset. this scrolling offset must be of a particular value when the list is bouncing

提交回复
热议问题