Hello i need to put a background image on a button, anyone knows how to do that?
Hum.. not possible without custom render, but if you just want a click, maybe a image and adding tap recognizer to it
I've used the technique Rui mentioned really no difference between an image with a tap and a button.
Don't you lose the touch feedback if you put an image as a button?
Thank you guys i already did a custom render extending a Button and it works as spected.
yap you don't get tap feedback, in a button you have second tinted state when you tap.
@FrankelyDiaz if you want to share that with the community try a PR Xamarin.Forms.Labs
btw the image button in Xamarin Forms Labs, already does this too. but needs some little adjustment. i was talking with @KevinFord about it.
Nice i can do that, where should i share it ?
This is a bit late but I've built a library that has an element called ImageButton. ImageButton has the ability to have a background image and can change the background image when the button's state (default, selected, disabled, or disabled+selected) is changed.
You can learn more about it here:
Any feedback you may have would be welcome.
Xamarin Inc., as a wholly-owned Microsoft subsidiary acting as a separate legal entity, adheres to the Microsoft Privacy Statement: Privacy & cookies