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

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

    You do not.

    Pull-to-refresh is not a standard Windows Phone interaction, and you therefore should not implement it.

    No native/first-party Windows Phone application use this functionality, and almost no third-party application does either. There is a reason for that.

    To refresh the content of a page (or in your case, a LongListSelector), you should use a refresh ApplicationBacIconButton, just like in the Mail app. That's the standard and preferred way to manage refreshes.

    Windows Phone is not Android, nor is it iOS. Keep that in mind when designing an application for it.

    It is not a zoo, there are rules.

提交回复
热议问题