Windows-10 UWP Binding Image url to Image source in ListView Windows-10 UWP Binding Image url to Image source in ListView windows windows

Windows-10 UWP Binding Image url to Image source in ListView


If you are looking for XAML-based binding here is how:

<Image>    <Image.Source>        <BitmapImage UriSource="{Binding ImageSource}" />    </Image.Source></Image>


I can give you one alternative. You can set the Image source from the code behind file.The Url does not directly render using the "source" property of the Image tag. You have to convert the URL to a Bitmap Image first then set the source property to that Bitmap object

Try this,

Image.Source = new BitmapImage(new Uri("http://yourdomain.com/image.jpg", UriKind.Absolute));

as seen on the question hereProgrammatically set the Source of an Image (XAML)