dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.01k stars 1.72k forks source link

[Windows] Label style defined as ContentPage Resource doesn't propagate to CollectionView #18701

Open Vroomer opened 10 months ago

Vroomer commented 10 months ago

Description

Setting TextColor at Page's resource level doesn't propagate to the CollectionView Templates. I didn't test other properties or different levels of Resource definitions. Android is correct. Snímek obrazovky 2023-11-13 024106

Steps to Reproduce

  1. Load the repository and run the app.
  2. Observe the text color. The color should be black.

Link to public reproduction project repository

https://github.com/Vroomer/MAUI-CollectionView-templates-bugs.git

Version with bug

8.0.0-rc.2.9511

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

Windows SDK 10.0.19041.0

Did you find any workaround?

No response

Relevant log output

No response

ghost commented 10 months ago

We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process.

XamlTest commented 10 months ago

Verified this on Visual Studio Enterprise 17.9.0 Preview 1(8.0.3). Repro on Windows 11, not repro on Android 14.0-API34 with below Project: MauiApp10.zip

Windows: image

Android: image