Disapearing controls in CollectionView on scrolling (on Android) #17508
Labels
area-controls-collectionview
CollectionView, CarouselView, IndicatorView
migration-compatibility
Xamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convert
platform/android 🤖
s/triaged
Issue has been reviewed
s/try-latest-version
Please try to reproduce the potential issue on the latest public version
t/bug
Something isn't working
Description
This is migration of project from Xamarin.Forms where following code works. Problem is only on Android (on iOS it works fine). When scrolling CollectonView and loading more data some controls for newly loaded data are not shown and upon scrolling back you discover that they also disapear for previously loaded data.
Initial data (notice 2 last rows for each card view - activity and images):
After scrolling and loading more data, 2 last rows are empty, even for previously loaded rows (some random rows do show loaded data still):
Steps to Reproduce
Link to public reproduction project repository
https://github.com/damiand2/MauiBugDisapearingControls
Version with bug
7.0.92
Is this a regression from previous behavior?
Yes, this used to work in Xamarin.Forms
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
No response
Did you find any workaround?
Workaround that seems to be working is to remove BindableLayout.ItemTemplate for stacklayouts inside scrollview inside collectionview and manually construct control tree for each item inside CollectionView.ChildAdded event
Relevant log output
No response
The text was updated successfully, but these errors were encountered: