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

ImageSource.FromResource

$
0
0

Hi

If I try to load a image like described below in a Page I get a thread exception.

The image "Logo.png" is part of the PCL Library With build action 'BundleResource'.

var imageLogo = new Image
{
Source = ImageSource.FromResource("Logo.png")
};

Do I have to move the Resource to each Application (Android, iOS and Windows Phone ? )

Regards


Viewing all articles
Browse latest Browse all 58056

Trending Articles



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