question

01700851 avatar image
0 Votes"
01700851 asked JarvanZhang-MSFT commented

CollectionView: Item indices in the Scrolled event args (ItemsViewScrolledEventArgs) are incorrect on iOS when IsGrouped = true

When a CollectionView's IsGrouped property is set to true, the values of FirstVisibleItemIndex, CenterItemIndex, and LastVisibleItemIndex specified in the ItemsViewScrolledEventArgs passed to the Scrolled event handler are incorrect. They appear to be unable to reflect the indicies of any items beyond the first group.

This issue has already been raised in various forums before, but no solution has been found.

dotnet-xamarin
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi, thanks for sharing this issue. Our team will report this problem to the Xamarin product team to solve it.

0 Votes 0 ·

1 Answer

JarvanZhang-MSFT avatar image
0 Votes"
JarvanZhang-MSFT answered

Hello,​

Welcome to our Microsoft Q&A platform!

the values of FirstVisibleItemIndex ... specified in the ItemsViewScrolledEventArgs passed to the Scrolled event handler are incorrect

I tested the function with the lastest Xamarin.Forms and reproduced the issue on my side. Someone faced the simialr issue on previous version and has reported it to the Xamarin.Forms github repo. You could add your problem to the topic. Here is the link: https://github.com/xamarin/Xamarin.Forms/issues/10389

Best Regards,

Jarvan Zhang


If the response is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.