[BUG] IconTintColorBehavior sample not working as expected on windows
Is there an existing issue for this?
- [X] I have searched the existing issues
Did you read the "Reporting a bug" section on Contributing file?
- [X] 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
When the button entitled "This ImageButton uses Bindings to change the TintColor, Click it!" is clicked nothing happens.
Expected Behavior
When the mentioned button is clicked the color should change.
Steps To Reproduce
Download fresh copy of the samples and run them on Windows machine. Open sample page: IconTintColorBehaviorPage Click the button entitled "This ImageButton uses Bindings to change the TintColor, Click it!"
Link to public reproduction project repository
https://github.com/CommunityToolkit/Maui/tree/main
Environment
- .NET MAUI CommunityToolkit.Maui.Markup: 4.0.0
- .NET MAUI CommunityToolkit.Maui.Mvvm: 8.2.2
- OS: Windows 11 (10.0.22631 Build 22631)
- .NET MAUI: net8.0
- VS 2022 17.9.2
- workloads: maui 8.0.6/8.0.100 SDK 8.0.200
maui-windows 8.0.6/8.0.100 VS 17.9.34622.214
etc.
Anything else?
I tested the sample because we had a every strange behavior in our app regarding tinting on windows: when the tint color is directly bound to our observable property the color is not applied, but when we chain-bind the property it works. Below is an example of what I would call chain-binding: we bind the color to a label instead of binding directly to the tint color and then we bind the tint color to the label's property...,, and it works....
P.S. "Context" is a property is in our model (it is not static in case someone wonders)
the same on android, TintColor binding in not working.