Label FormattedString not reacting to AppThemeBinding change at runtime #17938
Labels
area-controls-label
Label, Span
fixed-in-8.0.0-rc.2.9511
Look for this fix in 8.0.0-rc.2.9511
migration-compatibility
Xamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convert
platform/android 🤖
platform/iOS 🍎
s/triaged
Issue has been reviewed
s/verified
Verified / Reproducible Issue ready for Engineering Triage
t/bug
Something isn't working
Milestone
Description
When changing the theme at runtime on Android or iOS, the implicit TextColor on a Label style is not being respected. Restarting the app is accurate. I tried .NET 8 RC2 and .NET 7 - 7.0.96.
bad.mp4
Setting the same on a Span type style does work.
good.mp4
Project:
templatetweak.zip
Steps to Reproduce
Go into the
styles.xaml
file of the attached file and comment out this lineLink to public reproduction project repository
No response
Version with bug
8.0.0-rc.2
Is this a regression from previous behavior?
Yes, this used to work in Xamarin.Forms (confirmed in attached)
XamarinLabelRepro.zip
Last version that worked well
Unknown/Other
Affected platforms
iOS, Android
Affected platform versions
No response
Did you find any workaround?
Styling the Span instead of just the Label.
Relevant log output
No response
The text was updated successfully, but these errors were encountered: