Image not load from URL in Listview using ffimageloading:CachedImage

Hello all,

I am trying to show images in imageview (in listview) from URL using ffimageloading:CachedImage but it not working when i pass url from the model (getter & setter) and if i send URL in xaml file than it showing , so how can show image from model. can you please help me.

-> xaml file

 <ffimageloading:CachedImage HorizontalOptions="Center" VerticalOptions="Center"
    WidthRequest="100" HeightRequest="100"
        Source="http://www.ayanworks.com/wp-content/uploads/2016/09/01.jpg"     // if i write {Binding main_image} than it's not working                                               
    DownsampleToViewSize="true"/>

-> News Model
class NewsItem
{
public String title { get; set; }
public String text { get; set; }
public String main_image { get; set; }
}

Posts

Sign In or Register to comment.