CommunityToolkit / CommunityToolkit/Maui
[BUG] IconTintColor Not Applied While Converting MAUI View to Platform View
- Dominant language
- C#
- Stars
- 2.7k
- Forks
- 500
- Avg merge
- 2d 14h
- Merged PRs (30d)
- 7
Description
### 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
### Description
The issue arises when converting a MAUI View containing an image with a tint color to a platform-specific native view (e.g., Windows or Android). The IconTintColor behavior, which should apply a color tint to the image, is not preserved during the conversion process.
### Expected Behavior
**Android**

**Windows**

### Steps To Reproduce
### Steps to Reproduce
1.Create a CustomView with an ItemContent property of type View and an ItemTemplate property of type DataTemplate.
2. Add a CustomView handler for platform-specific implementations.
3.On the Windows platform, create a CustomControl derived from ContentControl.
4.On the Android platform, create a CustomControl derived from FrameLayout.
5.When adding an image to the ItemContent and ItemTemplate, the IconTintColor behavior is not applied.
### Link to public reproduction project repository
(https://github.com/surya3655/TintColor-Issue.git)
### Environment
```markdown
- .NET MAUI CommunityToolkit:9.0.2
- OS:Edition Windows 11 Enterprise Version 23H2
- .NET MAUI: 8.0.40
```
### Anything else?
_No response_
Contributor guide
Research direction
Start with the linked TintColor-Issue reproduction and inspect the platform-specific CustomView handlers, including the Windows CustomControl and Android CustomControl. Reproduce conversion with an image carrying IconTintColor; done means the tint remains applied in both platform views.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- desktop-dev, mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 45/100