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

Image binding using path in Xamarin forms

$
0
0

Hi All,

This is how I am trying to bind image in ListView-

fruitGroup.Add (new MenuListModel () {
Name_PriceTag = "strawberry", IsReallyAVeggie = false,Comment = "spring plant",item_Image="fruit_salad.jpeg"
});

and Xaml -

  <Image Source="{Binding item_Image}"/>

In above example, item_Image is a type of string. I am working on xamarin forms with Mac using Xamarin studio. I am not able to access "fruit_salad.jpeg" which stored in Image folder of PCL project. Instead of using file name, if I am using URL of any image, it's accessible. What to do for accessing images stored in Images folder of PCL project.


Viewing all articles
Browse latest Browse all 91519

Trending Articles



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