jamesmontemagno / Xamarin.Forms-PullToRefreshLayout

Pull To Refresh a ScrollView or ListView in Xamarin.Forms
218 stars 49 forks source link

Applied On CollectionView , it does not show results after refresh #72

Closed Elashi closed 5 years ago

Elashi commented 5 years ago

The first time I open my page , it fills data correctly. But after I pull to refresh, I see blank page. I have to visit another page and get back to it to see the results. I have put it around a CollectionView and I only tested it on Android emulator.

jamesmontemagno commented 5 years ago

I believe this is most likely a bug with CollectionView based on how you are using ObservableCollection to clear and add. I do this: https://github.com/jamesmontemagno/Hanselman.Forms/blob/vnext/src/Hanselman/Views/Blog/BlogCollectionPage.xaml.cs#L33-L39

Elashi commented 5 years ago

Your code is perfect. It was my mistake. My code that fills the ObservableCollection filled inconsistent results causing the view to show inconsistent results. Thank you