Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Pull to Refresh functionality and Partial Pages

$
0
0

Greetings All!

I recently added pull to refresh functionality on one of my DVC, and it is not acting the way I would expect it to. It requires me to scroll down, before I can scroll up and engage the default pull to refresh functionality. I would expect that even if I am at the top of the list, I should be able to pull down and refresh the list.

This wouldn't be so bad by itself, if not for the fact that if I have a short list of data, the page does not scroll, so the pull to refresh functionality does not work at all.

public SomeViewController () : base(null, false) {
RefreshControl = new UIRefreshControl();
RefreshControl.ValueChanged += HandleValueChanged;
}

void HandleValueChanged (object sender, EventArgs e) {
AsyncPageLoad();
}

private async void AsyncPageLoad() {
//Refresh data
RefreshControl.EndRefreshing ();
}

If anyone has any advice on how to get the built in pull to refresh functionality working properly, I would greatly appreciate it.

Thanks in advance!
Josh


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>