Hi all, I have been attempting to work with images and as such have created a PCL class library to keep all my resource images in. It is called Mobile.GTO.Resources. I have referenced the assembly in my Mobile.GTO.iOS, Mobile.GTO.Android and Mobile.GTO.WinPhone apps and all complied nicely.
The assembly has the following content. Folder called "Images", with sub folder called "Landing", this contains four .png files all which are set as EmbeddedResource.
It does not display the image though (no exception)
var jobsImage = new Image()
{
Aspect = Xamarin.Forms.Aspect.AspectFit,
Source = ImageSource.FromResource("Mobile.GTO.Resources.Images.Landing.jobs.png")
};
jobsImage.GestureRecognizers.Add(new TapGestureRecognizer((view, args) =>
{
this.DisplayAlert("Tap", "Jobs", "OK", null);
}));
Anyone seen this before or can offer any explanation?