Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 75885

Set Image to button

$
0
0

How to set image to a Button?

I tried this:

btnExemple = new Button(){
    Image = (FileImageSource) ImageSource.FromResource("ic_search.png"),
}

But it don't work.


Viewing all articles
Browse latest Browse all 75885

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>