Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ListView GroupHeaderTemplate produces blank headers on iOS and MacCatalyst #13076

Closed
nikolajskov opened this issue Feb 2, 2023 · 6 comments
Closed
Assignees
Labels
area-controls-listview ListView and TableView p/1 Work that is important, and has been scheduled for release in this or an upcoming sprint partner/cat 😻 this is an issue that impacts one of our partners or a customer our advisory team is engaged with platform/iOS 🍎 s/triaged Issue has been reviewed s/try-latest-version Please try to reproduce the potential issue on the latest public version s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working

Comments

@nikolajskov
Copy link

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

@nikolajskov nikolajskov added the t/bug Something isn't working label Feb 2, 2023
@jsuarezruiz jsuarezruiz added this to the Backlog milestone Feb 2, 2023
@ghost
Copy link

ghost commented Feb 2, 2023

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.

@samhouts samhouts added partner/cat 😻 this is an issue that impacts one of our partners or a customer our advisory team is engaged with p/1 Work that is important, and has been scheduled for release in this or an upcoming sprint labels Feb 9, 2023
@pcdus
Copy link

pcdus commented Feb 23, 2023

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>

@rachelkang rachelkang self-assigned this Apr 26, 2023
@rachelkang
Copy link
Member

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

@samhouts samhouts modified the milestones: Backlog, .NET 8 May 24, 2023
@rachelkang rachelkang added the s/try-latest-version Please try to reproduce the potential issue on the latest public version label Jun 6, 2023
@ghost
Copy link

ghost commented Jun 6, 2023

Hi @nikolajskov. We have added the "s/try-latest-version" label to this issue, which indicates that we'd like you to try and reproduce this issue on the latest available public version. This can happen because we think that this issue was fixed in a version that has just been released, or the information provided by you indicates that you might be working with an older version.

You can install the latest version by installing the latest Visual Studio (Preview) with the .NET MAUI workload installed. If the issue still persists, please let us know with any additional details and ideally a reproduction project provided through a GitHub repository.

This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

@rachelkang
Copy link
Member

rachelkang commented Jun 6, 2023

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

@homeyf homeyf added s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage labels Jun 13, 2023
@homeyf
Copy link

homeyf commented Jun 13, 2023

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

@ghost ghost closed this as completed Jun 20, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Jul 20, 2023
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-controls-listview ListView and TableView p/1 Work that is important, and has been scheduled for release in this or an upcoming sprint partner/cat 😻 this is an issue that impacts one of our partners or a customer our advisory team is engaged with platform/iOS 🍎 s/triaged Issue has been reviewed s/try-latest-version Please try to reproduce the potential issue on the latest public version s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants