How to set ImageSource as Xamarin.Forms.Button?

后端 未结 6 1425
野性不改
野性不改 2021-01-04 11:28

I am trying add a background image using the image property in button. The issue I\'m facing is that i can\'t set StreamImageSource as button background. I encountered the e

6条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-04 12:19

    As of Xamarin.Forms 3.4.0 you can now use ImageButton. You can use embedded images by using an extension method explained in this MS document

提交回复
热议问题