CommunityToolkit icon indicating copy to clipboard operation
CommunityToolkit copied to clipboard

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

Open Mub33nk opened this issue 1 year ago • 1 comments

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:

  • .NET MAUI version: 8.0
  • Platform: Android, iOS

Page URL

N/A

Content source URL

N/A

Document Version Independent Id

N/A

Article author

N/A

Metadata

No response

Mub33nk avatar Aug 29 '24 06:08 Mub33nk