Xamarin.Forms icon indicating copy to clipboard operation
Xamarin.Forms copied to clipboard

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

Open JustickDM opened this issue 1 year ago • 0 comments

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

  • Version with issue: Last
  • Last known good version: No

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

JustickDM avatar Nov 15 '23 13:11 JustickDM