-
Notifications
You must be signed in to change notification settings - Fork 339
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bugfix: Windows IconColorTintEffect HeightRequest #1271
Conversation
…into BugfixTintEffect
Thanks @kperdlich!! |
FYI In the commit text for this bugfix, there is a change "* Load image immediately when available" which checks, if the image is already loaded, and if so, the tint will be applied. This does not only cause the image to be colored immeadiately, this fixes a bug, that the image wouldnt be at all. So if you are having this issue (and you are testing on windows), the problem is already solved; it is just nowhere documented, bc i think the problem wasn't found at all Thanks a lot! |
Could you please open a new Issue to document this? It'd be great if you could provide a PR to fix it as well!
Just FYI - it is not recommended to register |
It's not necessary to provide a PR, the bug is already fixed, but it isn't mentioned anywhere that it is fixed/that it existed. I guess it was fixed unintentionally Should i still create an issue to document it? |
Apologies, I'm confused. Is there a bug in v5.2.0? |
There is a bug in v5.2.0, but is already fixed on the current master branch. It just isn't documented/mentioned anywhere that the bug exists/existed Sorry, i think i didn't say that clearly in my description |
This is not fixed in the main branch as of 08/2/2023. Steps to reproduce:
<Image
Source="dotnet_bot.png"
SemanticProperties.Description="Cute dot net bot waving hi to you!"
HeightRequest="200"
HorizontalOptions="Center">
<Image.Behaviors>
<toolkit:IconTintColorBehavior TintColor="Aqua"/>
</Image.Behaviors>
</Image> If you also set WidthRequest to 200, you get this: <Image
Source="dotnet_bot.png"
SemanticProperties.Description="Cute dot net bot waving hi to you!"
HeightRequest="200"
WidthRequest="200"
HorizontalOptions="Center">
<Image.Behaviors>
<toolkit:IconTintColorBehavior TintColor="Aqua"/>
</Image.Behaviors>
</Image> I have fixed this in my fork here: Should a submit a pull request? |
Yes! Please open an Issue first to document the bug, demonstrating it with this reproduction sample. Then submit the fix in a PR and we'll merge it in! |
I am using 6.0.0, but the offset bug problem still exists on Windows, the workaround was to use ImageButton instead of Image. I will attach a sample to reproduce soon |
Description of Change
AnchorPoint
instead ofOffset
to align image correctly + apply additonal offset whenever a specific size is requested.Linked Issues
PR Checklist
approved
(bug) orChampioned
(feature/proposal)main
at time of PRAdditional information
For quick testing I adjusted IconTintColorBehaviorPage.xaml the following: