Skip to content

.NET 8 Changing BackgroundColor through an attached property does not work on Android  #19576

@FreakyAli

Description

@FreakyAli

PR REVERTED #30031

Description

I have a Static class that uses attached properties to create a shimmer effect, This stops updating the BackgroundColor with .NET 8. Works fine on iOS and on both with .NET 7 and 6.

Steps to Reproduce

  • Go to the repo link below and download.
  • Run and visit the skeleton effect screen.
  • The correct background colour will update on iOS once the skeleton effect is complete but fails on Android. (The colour is assigned correctly yet it does not do anything)
.NET 8 .NET 7

Link to public reproduction project repository

https://github.com/FreakyAli/Maui.FreakyEffects

Version with bug

8.0.3

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI, Yes, this used to work in Xamarin.Forms

Last version that worked well

7.0.101

Affected platforms

Android

Affected platform versions

All

Did you find any workaround?

No

Relevant log output

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-xamlXAML, CSS, Triggers, Behaviorsmigration-compatibilityXamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convertplatform/androidpotential-regressionThis issue described a possible regression on a currently supported version., verification pendings/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions