Skip to content

ListView GroupHeaderTemplate produces blank headers on iOS and MacCatalystΒ #13076

Closed

Description

@nikolajskov

Description

Running the ListViewDemos project from the maui-samples repo and displaying the GroupingPage on iOS and MacCatalyst, produces blank headers. Running the project on Android, produces the desired result.

iOS:
ios

MacCatalyst:
maccatalyst

Android:
android

Steps to Reproduce

  1. Run the ListViewDemos project.
  2. Under "Basics", tap the "ListView grouping" demo.
  3. Observe the missing group headers on iOS and MacCatalyst.

Link to public reproduction project repository

https://github.com/dotnet/maui-samples/tree/main/6.0/UserInterface/Views/ListViewDemos

Version with bug

7.0 (current)

Last version that worked well

Unknown/Other

Affected platforms

iOS, macOS

Affected platform versions

iOS 16.0, 16.1, 16.2 & macOS Ventura 13.2

Did you find any workaround?

Removing the ListView.GroupHeaderTemplate element from the GroupingPage.xaml file allows the group headers to be displayed, but removes the ability to control the layout.

Relevant log output

No response

Activity

  1. added this to the Backlog milestone on Feb 2, 2023
  2. added
    partner/cat 😻this is an issue that impacts one of our partners or a customer our advisory team is engaged with
    p/1Work that is important, and has been scheduled for release in this or an upcoming sprint
    on Feb 9, 2023
  3. pcdus commented on Feb 23, 2023

    @pcdus

    Another workaround is to put the Label in another container than the ViewCell

    <ViewCell>
        <Grid>
            <Label Text="{Binding Name}"
                    BackgroundColor="Yellow"
                    FontSize="20"
                    FontAttributes="Bold" />
        </Grid>
    </ViewCell>
    
  4. self-assigned this
    on Apr 26, 2023
  5. rachelkang commented on Apr 26, 2023

    @rachelkang
    Member

    It appears that there's an issue particularly with BackgroundColor in this scenario. Removing that attribute makes the header text visible

  6. modified the milestones: Backlog, .NET 8 on May 24, 2023
  7. added
    s/try-latest-versionPlease try to reproduce the potential issue on the latest public version
    on Jun 6, 2023
  8. rachelkang commented on Jun 6, 2023

    @rachelkang
    Member

    It seems this issue has since been fixed! Just validated against main :)

  9. added
    s/triagedIssue has been reviewed
    s/verifiedVerified / Reproducible Issue ready for Engineering Triage
    on Jun 13, 2023
  10. homeyf commented on Jun 13, 2023

    @homeyf

    Verified this issue with Visual Studio Enterprise 17.7.0 Preview 1.0 and 17.6 Preview(17.6.0.1539). Can repro on iOS and macOS platform with sample project. maui-samples/7.0/UserInterface/Views/ListViewDemos at main Β· dotnet/maui-samples Β· GitHub

  11. ghost closed this as completedon Jun 20, 2023
  12. ghost locked as resolved and limited conversation to collaborators on Jul 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area-controls-listviewListView and TableViewp/1Work that is important, and has been scheduled for release in this or an upcoming sprintpartner/cat 😻this is an issue that impacts one of our partners or a customer our advisory team is engaged withplatform/ioss/triagedIssue has been revieweds/try-latest-versionPlease try to reproduce the potential issue on the latest public versions/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions