Skip to content

[BUG] IconTintColorBehavior Not Reapplied When Reusing Views #2275

Closed

Description

@RiyashameedM

Is there an existing issue for this?

  • I have searched the existing issues

Did you read the "Reporting a bug" section on Contributing file?

Current Behavior

The IconTintColorBehavior does not correctly reapply the tint color when switching views in a ContentView and returning to a previously used view. When a view that uses IconTintColorBehavior is recycled and displayed again, the tint color is not applied to the image. The converter is not invoked when the recycled view is displayed. I have attached a sample to replicate the issue. I tested it with a background color instead of the tint color for a view, and it worked as expected.

Expected Behavior

IconTintColor Should be applied for the recycled view.

Steps To Reproduce

1.click the button 3 times
2.check the image color.

Link to public reproduction project repository

https://github.com/RiyashameedM/TintColorSample/tree/main

Environment

  • .NET MAUI CommunityToolkit:9.0.1
  • OS:android ios
  • .NET MAUI:8.0.82

Anything else?

No response

Activity

  1. TheSundayDev commented on Oct 16, 2024

    @TheSundayDev

    I have the same issue.

  2. TheSundayDev commented on Nov 8, 2024

    @TheSundayDev

    Hope to see this issue close in order to finally migrate to MUAI from XF.
    Thanks

  3. TheSundayDev commented on Dec 4, 2024

    @TheSundayDev

    hi all,
    just to know if I can help in order to fix this issue.
    thanks

  4. TheSundayDev commented on Dec 23, 2024

    @TheSundayDev

    Hi,
    seems working now with version 10.
    thanks

  5. TheCodeTraveler commented on Dec 23, 2024

    @TheCodeTraveler
    Collaborator

    Thanks for confirming!

  6. locked and limited conversation to collaborators on Dec 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/behaviorsIssue/Discussion/PR that has to do with BehaviorsbugSomething isn't workingunverified

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions