Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

ListView.ScrollTo is broken on iOS / I need alternatives.

$
0
0

I'm having a tonne of trouble getting the ListView to ScrollTo the end in iOS, it's working fine in Android. I can see there is a bug related to it that has been marked as solved then reopened etc:

https://bugzilla.xamarin.com/show_bug.cgi?id=28277&list_id=169723

I've made comment on that, but I was hoping someone has come up with a workaround for this?

Right now I'm feeding a List into my ListView.ItemsSource, then calling ScrollTo(chatMessages.Last(), ScrollToPosition.Start, true) to get it to scroll to the end but this usually just scrolls the list about 70% of the way down.

The ListView I'm using has uneven rows and I'm rendering my custom cells with a couple of stack layouts and labels inside each to get the layout right.

Any hints or tips or lifesavers that could be extended? I'm desperate at this point, holding off on the iOS version release of my app until it's solved, or just switching to scroll the list from the top which will be weird because it's a chat / server console.

Halp!


Viewing all articles
Browse latest Browse all 77050

Trending Articles



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