Skip to content

[BUG] IconTintColorBehavior is reset when navigate to another page then back #1957

Open
@zenith6495

Description

@zenith6495

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

IconTintColorBehavior for image is reset to black color when you navigate to another page then back to current page.

Expected Behavior

IconTintColorBehavior for image should remain the same when navigate to another page then to the current page.

Steps To Reproduce

  1. Set IconTintColorBehavior of an Image to red color for example.
  2. Navigate to another page using Shell.GotoAsync.
  3. Go back to the previous page, where icon is tinted to red.
  4. Notice the tinted image is reset back to black color.

Note: I noticed this issue in the latest version community toolkit sample project as well.

Link to public reproduction project repository

https://github.com/CommunityToolkit/Maui/tree/main/samples

Environment

- .NET MAUI CommunityToolkit: 9.0.1
- OS: Windows
- .NET MAUI: 8.0.60

Anything else?

No response

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