Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Mub33nk opened this issue Aug 29, 2024 · 1 comment
Labels

Comments

@Mub33nk
Copy link

Mub33nk commented Aug 29, 2024

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

@bijington
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants