Open BryanLanning opened 2 months ago
I can repro this issue at windows platform on the latest 17.12.0 Preview 2.0(8.0.71 & 8.0.91).
It would be great to figure out when this issue was introduced. I think i can see the same issue on my side too and I think it started with MAUI 8.0.90 but I can't check it out at the moment.
Description
When switching the theme on a Windows device, the Labels disappear. On an Android device or emulator, the Labels' styles are correctly updated.
Steps to Reproduce
CommunityToolkit.Maui
andCommunityToolkit.MVVM
NuGet packages.Link to public reproduction project repository
https://github.com/BryanLanning/MauiThemeLabelsVanish
Version with bug
8.0.91 SR9.1
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.20348.38
Did you find any workaround?
Option 1
Remove the
BackgroundColor
Setter from all TargetType="Label" styles. Including ones with an x:Key (Headline and SubHeadline) and both DefaultTheme and RedTheme. Even changing it to something other than Transparent does not work.Option 2
Move all TargetType="Label" styles from the Theme.xaml files to the App.xaml file inside the ResourceDictionary xml element, below the reference to the DefaultTheme.xaml.
Relevant log output
No response