maui icon indicating copy to clipboard operation
maui copied to clipboard

CollectionView Header/Footer/EmptyView issues when adding/removing items

Open tranb3r opened this issue 2 years ago โ€ข 4 comments

Description

An Android, in a CollectionView which defines Header/Footer/EmptyView, I'm facing a lot of issues when adding/removing items.

  • the footer is not always shown, it appears only for one in two added items
  • when the last item is removed from the source, the header becomes blank and the footer moves to the bottom of the page
  • after that, when adding/removing items, the footer does not appears anymore, unless the itemslist becomes empty again

There are also issues on iOS, not exactly the same though...

Steps to Reproduce

  1. Create a maui app with a collectionview
  2. Define header/footer/emptyview (and itemtemplate)
  3. Add/Remove items from the source and observe what happens, especially for header and footer

Link to public reproduction project repository

repro Launch app ; click on button to add a few items ; click on button to remove items until list is empty.

Version with bug

7.0 (current)

Last version that worked well

Unknown/Other

Affected platforms

iOS, Android

Affected platform versions

Latest

Did you find any workaround?

No workaround

Relevant log output

No response

tranb3r avatar Dec 06 '22 11:12 tranb3r

We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.

ghost avatar Dec 06 '22 19:12 ghost

Similar to #8761

tranb3r avatar Feb 15 '23 10:02 tranb3r

Verified this issue with Visual Studio Enterprise 17.7.0 Preview 3.0(net8). Can repro on Android platform with sample project. Issues/MauiAppCollectionViewHeaderOrEmpty at main ยท tranb3r/Issues (github.com)

jinxinjuan avatar Jul 18 '23 08:07 jinxinjuan

Is this going to be fixed?

tranb3r avatar Feb 20 '24 19:02 tranb3r