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

UriImageSource-based image not rendering

$
0
0

Hello,

I am creating an image from a Uri, but it doesn't render in my app at all (note that local images work fine!). I believe everything is set up correctly, so I'm a little confused as to the cause of the problem!

private static Image GenerateImage(string imagePath)
        {
            Image image = new Image()
            {
                Source = ImageSource.FromUri(new Uri(imagePath))
            };
            return image;
        }

Any ideas as to what is causing the problem? That code doesn't appear to reveal that much, as it sets the source correctly.

Thanks,
Richard


Viewing all articles
Browse latest Browse all 58056

Trending Articles