MicrosoftDocs / CommunityToolkit

The Official Docs for the Community Toolkits
https://learn.microsoft.com/dotnet/communitytoolkit
Creative Commons Attribution 4.0 International
109 stars 88 forks source link

IconTintColorBehavior does not immediately apply tint color on property change in .NET MAUI #459

Open Mub33nk opened 2 weeks ago

Mub33nk commented 2 weeks ago

Type of issue

Code doesn't work

Description

The IconTintColorBehavior in .NET MAUI does not apply the tint color immediately when the TintColor property changes. The color only updates after interacting with the control (e.g., clicking the ImageButton).

Steps to Reproduce:

  1. Create a custom control using an ImageButton.
  2. Bind the TintColor property of the IconTintColorBehavior to a property in the ViewModel.
  3. Change the bound property value programmatically.
  4. Observe that the tint color does not change immediately.

Expected Behavior: The tint color should update immediately when the TintColor property changes.

Actual Behavior: The tint color only updates after the ImageButton is clicked or interacted with.

Environment:

Page URL

N/A

Content source URL

N/A

Document Version Independent Id

N/A

Article author

N/A

Metadata

No response

bijington commented 2 weeks ago

Please raise this issue on the code repository: https://github.com/CommunityToolkit/Maui