Skip to content

[9.0.50] CollectionView display is broken when setting IsVisible after items are added #28415

@tranb3r

Description

@tranb3r

Description

This is a regression introduced in 9.0.50.
In my app, some CollectionView are not displayed properly, if IsVisible is set a few seconds after adding items to the CollectionView.

Steps to Reproduce

Run repro project on android.
At first, there is only a blank screen, because the CollectionView is hidden (IsVisible=False). This is the expected behavior.
Wait 10s after opening the app, the CollectionView appears, but most items are empty. This is the issue.
Scroll the CollectionView a bit, some items will appear.

Link to public reproduction project repository

MauiAppCollectionViewIsVisibleRegression

Version with bug

9.0.50 SR5

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

9.0.40 SR4

Affected platforms

Android

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions