Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pull down to refresh in Windows Phone 8.1


I want to implement the pull-down-to-refresh function in my WP8.1 (Runtime) app. I tried to find a solution for this WP version, but as I have seen this function works in older versions of WP.
I have a ListView where I would like to use it. With ScrollViewer I can detect when the user reach the end of the list, but for example the VerticalOffset value cannot be a negativ number, so I cannot detect the pull down gesture.
Can anyone any idea how can I implement this feature for my app?

like image 663
Speederer Avatar asked Jan 02 '15 23:01

Speederer


1 Answers

I've created a simple control that implements the "Pull to refresh" feature, and the "Load data on demand", you can find it in nuget, read about it from this blog post. Works on both Windows 8 & Windows Phone 8.1

UPDATE: I've published the source code of this control if anybody is interested: https://github.com/TareqAteik/ExtendedListView

enter image description here

like image 173
Ateik Avatar answered Oct 06 '22 10:10

Ateik