xamarin / Xamarin.Forms

Xamarin.Forms is no longer supported. Migrate your apps to .NET MAUI.
https://aka.ms/xamarin-upgrade
Other
5.63k stars 1.87k forks source link

[Bug] [Andoid] [iOS] Setter incorrectly changes property value (color) from a dynamic resource #15836

Open JustickDM opened 10 months ago

JustickDM commented 10 months ago

Description

Setter incorrectly changes property value (color) from a dynamic resource This error may affect all Triggers and VisualStateManager Maybe same - https://github.com/xamarin/Xamarin.Forms/issues/7068

Steps to Reproduce

  1. Run a sample
  2. Click on button

Expected Behavior

Changing the color

Actual Behavior

The color does not change

Basic Information

Screenshots

  1. After run the program image
  2. After first click on button image
  3. After second click on button image
  4. After third click on button image

Reproduction Link

https://github.com/JustickDM/SetterBug

Workaround

No, but I think the problem is with this method https://github.com/xamarin/Xamarin.Forms/blob/5.0.0/Xamarin.Forms.Core/Setter.cs#L89