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

Images with databinding via XAML

$
0
0

I am able to display images successfully, but it fails when I try to do it with data binding in a XAML ListView.

I have tried it a couple ways.

1

Image Source="{Binding ImageResourcePath}"

I know the object is getting pulled correctly because I have a label immediately near that pulls another property ("{Binding Street}") successfully.

2

ImageCell Text="{Binding Street}" ImageSource="{Binding ImageResourcePath}"

Both of these approaches show text information just fine, but the image is gone.

I can see the image resources have loaded from a assembly.GetManifestResourceNames check I do. I copied the paths directly from that output to the ImageResourcePath.

I have even put static paths that I can see working (not in the ListView) into the ImageResourcePath, but this shows as blank also.

I have tried switching out the images that work with the databinding images as well. Still blank.

Edit:

These are embedded assembly images


Viewing all articles
Browse latest Browse all 91519

Trending Articles



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