How to set ImageSource as Xamarin.Forms.Button?

后端 未结 6 1391
野性不改
野性不改 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条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-04 12:21

    Careful with upper- and lowercase in filenames.

    I was wondering, why my button-images were shown properly on the simulator, but not on my iPhone.

    On the device the filename must match exactly, the simulator doesn't care about upper- and lowercase in filenames.

提交回复
热议问题