maui icon indicating copy to clipboard operation
maui copied to clipboard

K1_CollectionViewPool list - Black background color on some texts.

Open Marnie-Majait opened this issue 5 months ago • 5 comments

Description

Black background color on some texts and spaces.

Affected case: K1 - Check the performance of CollectionView with a large number of items

Note: Some texts on the bottom are also gibberish.

Image

Steps to Reproduce

  1. Deploy https://devdiv.visualstudio.com/Pkgs/_git/VS.TestAssets.Xaml?path=/Assets/Projects/ManualMauiTests on iOS or MacCatalyst platforms.
  2. Click K_Performance -> K1 - CollectionViewPool list -> Click button
  3. Observe that the texts and the spaces have a black background color.

Actual Behavior: Texts and spaces have a black background color (both in light theme and dark theme)

Image

Image

Expected Behavior: Texts and spaces should adapt properly with the theme and should be readable.

Image

Link to public reproduction project repository

https://devdiv.visualstudio.com/Pkgs/_git/VS.TestAssets.Xaml?path=/Assets/Projects/ManualMauiTests

Version with bug

Microsoft.Maui.Controls 9.0.90-ci.inflight.25314.2

Is this a regression from previous behavior?

Yes, this is a regression. The issue not repro on 9.0.80.

Affected platforms

macOS, iOS

Marnie-Majait avatar Jun 17 '25 07:06 Marnie-Majait

I can also reproduce this problem when I deploy the WhattoEat project using the Microsoft.Maui.Controls 9.0.90-ci.inflight.25314.2 with a light theme.

  1. Deploy dotnet/maui-samples at whattoeat on iOS or Maccatalyst platforms.
  2. Observe that the spaces of some of the pages has a black background color.

Image

Image

When you switch to dark theme, it displays properly:

Image

Marnie-Majait avatar Jun 17 '25 07:06 Marnie-Majait

This issue can also be reproduced with CollectionViewHandler2.

Marnie-Majait avatar Jun 17 '25 08:06 Marnie-Majait

Just finding commits, could it have been this? https://github.com/dotnet/maui/pull/22917

mattleibow avatar Jun 17 '25 10:06 mattleibow

This issue has been verified in Visual Studio Code 1.101.0 with .NET MAUI version - 9.0.90-ci.inflight.25314.2 It can be reproduced on both the iOS and macOS platform in CV1 and CV2. It is not reproducible on MAUI version 9.0.80.

HarishKumarSF4517 avatar Jun 17 '25 10:06 HarishKumarSF4517

I believe it was this: https://github.com/dotnet/maui/pull/22917

Reverting for now https://github.com/dotnet/maui/pull/30031

mattleibow avatar Jun 17 '25 10:06 mattleibow