Xamarin.Forms
Xamarin.Forms copied to clipboard
[Bug] CollectionView: Item indices in the Scrolled event args (ItemsViewScrolledEventArgs) are incorrect on iOS when IsGrouped = true
Description
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.
It should be noted that the indices are reported correctly on Android.
Steps to Reproduce
- Open the attached solution.
- Run the iOS app.
- Scroll the list.
- Make note of the indices reported in the debug output.
Expected Behavior
The indices of items in groups other than the first group should appear as the list is scrolled.
Actual Behavior
Only the indices of the first group are reported in the event args, even though those items are clearly not the first/center/last items.
Basic Information
- Version with issue: 4.5.0.617
- Platform Target Frameworks:
- iOS: 11.4
Reproduction Link
See also #9989
We are facing the same issue. We are using Xamarin.Forms 5.0.2012. Is there anyone who have found any solution?
See also #13787
Does anyone have an update or a workaround?
Any news, when, this could be fixed on iOS?