dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.28k stars 1.76k forks source link

ImageButton does not show the icon on Android in custom control but replacing it with Image control does #17762

Closed FreakyAli closed 1 year ago

FreakyAli commented 1 year ago

Description

I have a custom control, when I try to show an icon in it which is an SVG (I am using .png extension) the ImageButton control fails to show that icon whereas when I replace the same with an Image control everything works.

Find the screenshots below:

Image ImageButton

Steps to Reproduce

Go to the below repro link and run it, the control you are looking for is called FreakyPinCodeControl You just need to run this specific branch and it will be on your homescreen

Link to public reproduction project repository

https://github.com/FreakyAli/Maui.FreakyControls/tree/r4-gh/fix/pin-control

Version with bug

7.0.92

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

Android API-33

Did you find any workaround?

No

Relevant log output

No response

ghost commented 1 year ago

We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process.

FreakyAli commented 1 year ago

Just checked this with .NET 8 and things are working fine, Closing this!