question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] mct:IconTintColorBehavior doesn't work on windows<image> or <imagebutton>

See original GitHub issue

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

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.

image

Works ok when deployed to iOS or android. image

Expected Behavior

Using tint color should change the icon / image colours

Steps To Reproduce

  1. Create new MAUI App.
  2. Add community toolkit and namespaces to project.
  3. Add icon tint behaviour to the dotnet bot image.
  4. 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:closed
  • Created 7 months ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
bijingtoncommented, Feb 14, 2023

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 👍🏻

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.

1reaction
TheLankyScottishNerdcommented, Feb 12, 2023

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 👍🏻

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found