[BUG] mct:IconTintColorBehavior doesn't work on windows<image> or <imagebutton>
See original GitHub issueIs there an existing issue for this?
- I have searched the existing issues
Did you read the “Reporting a bug” section on Contributing file?
- I have read the “Reporting a bug” section on Contributing file: https://github.com/CommunityToolkit/Maui/blob/main/CONTRIBUTING.md#reporting-a-bug
Current Behavior
Description
Using tint color to change the icon / image colours doesn’t apply when deployed to windows.
an example project has been linked which shows two images, one of which is an imagebutton, with the behaviour attached and no visible changes.

Works ok when deployed to iOS or android.
Expected Behavior
Using tint color should change the icon / image colours
Steps To Reproduce
- Create new MAUI App.
- Add community toolkit and namespaces to project.
- Add icon tint behaviour to the dotnet bot image.
- Run on 3 platforms and observe bug.
Link to public reproduction project repository
https://github.com/TheLankyScottishNerd/IconTintWinUI
Environment
- .NET MAUI CommunityToolkit: 4.0.0
- OS: Microsoft Windows 11 Pro - 10.0.22621 Build 22621
- .NET MAUI: 7.0.52
Anything else?
Someone mentioned that this isn’t supported on Windows… I don’t seem to see that documented anywhere, though.
Issue Analytics
- State:
- Created 7 months ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
ImageButton does not display a particular drawable
I can't do that. I have density specific images. Currently I am working on mdpi. And there is no reason for just one...
Read more >SVG extension Image does not work on ImageButton/Button
Description When I created a ImageButton or Button, set Source/ImageSource property with a svg extension like below: The button would show ...
Read more >basic imagebutton doesn´t work : r/RenPy
I have one implemented in one project that in principle should just lead to another section i.e. label when clicked. Since it wasn´t...
Read more >Choose image button doesn't work - Bugs
I'm trying to replace an image through my fill preferences, when I select “choose an image” to select a local file it doesn't...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I have opened a PR to fix the path and add a note that Windows is not supported. https://github.com/MicrosoftDocs/CommunityToolkit/pull/227
Thanks for pointing this out.
Hey @pictos, please accept my apologies. I did scratch my head for a while and did everything except jump into the actual code here in the repo or my project, so again I apologise.
Can we add an addition to the docs for this limitation? I am very new to MAUI and I didn’t get any compile errors or any warnings in VS.
I checked the docs here: https://github.com/MicrosoftDocs/CommunityToolkit/blob/main/docs/maui/behaviors/icon-tint-color-behavior.md and its not mentioned that this doesn’t work and the link to the source goes to a 404.
Would a page in the docs which details the features working on which platforms for the toolkit be beneficial? Also, I wouldn’t mind contributing to the docs, if at all possible that is.
Thanks again 👍🏻