Skip to content

[BUG] TintColorBehavior does not work correctly within a popup control #2137

@CraigBelser

Description

@CraigBelser

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 when used in a community in toolkit popup on the windows platform loses the tint color when the popup is reopened. The color will initially show up on the first use, but subsequent uses lose the tint color. Beyond the community toolkit popup that is part of the code repro, it also happens in custom dropdowns for other controls like the Telerik combo box dropdown and other third party dropdowns.

PopupTintLoss.mp4

Expected Behavior

Tint color will remain on the target control when the popup reopens.

Steps To Reproduce

  1. Open and run the attached repro
  2. press the popup button
  3. see the tint
  4. close the popup using the close button on the popup
  5. reopen the popup
  6. see the tint color loss

Link to public reproduction project repository

https://github.com/ImpySoft/TintColorIssue

Environment

- .NET MAUI CommunityToolkit: 9.0.3
- OS: Windows
- .NET MAUI: 8

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