Skip to content

Fix IconTintColorBehavior not tinting UriImageSource on Windows#1949

Merged
TheCodeTraveler merged 15 commits into
CommunityToolkit:mainfrom
myix765:main
Jun 18, 2024
Merged

Fix IconTintColorBehavior not tinting UriImageSource on Windows#1949
TheCodeTraveler merged 15 commits into
CommunityToolkit:mainfrom
myix765:main

Conversation

@myix765

@myix765 myix765 commented Jun 18, 2024

Copy link
Copy Markdown
Contributor

Description of Change

Added check for if the bindable object has a UriImageSource and added it as a UriSource for the WImage control. Previously, the WImage control source was null.

Linked Issues

PR Checklist

Additional information

Tested on Windows 10
This is an update to a previous PR #1929 which introduced a new issue, but this PR only addresses one of the issues linked in the old PR.

Megan Yi and others added 14 commits June 12, 2024 08:47
* Swap the order of checks to prevent an unnecessary exception from being thrown

* Tidy up usage

---------

Co-authored-by: Shaun Lawrence <17139988+bijington@users.noreply.github.com>
Co-authored-by: Brandon Minnick <13558917+brminnick@users.noreply.github.com>

@TheCodeTraveler TheCodeTraveler left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @myix765!

Just FYI - I added support for SVG images in LoadAndApplyImageTintColor(View, WImage, Color), and I added some Images to the IconTineColorBoehaviorPage in the sample app that use UriImageSource to ensure we have a way to regression test this bug in the future.

@TheCodeTraveler TheCodeTraveler enabled auto-merge (squash) June 18, 2024 17:03
@TheCodeTraveler TheCodeTraveler merged commit e57d9cc into CommunityToolkit:main Jun 18, 2024
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] IconTintColorBehavior doesn't work for UriImageSource on Windows

3 participants