I have an ObservableCollection of an object with various properties, including one of type ImageSource, which will display an image.
Then, I have a listView with it's itemSource binded to that collection, and in it's dataTemplate, I'm binding each property of the object, now for each viewcell in my listview, I'm displaying all properties of my object, including the image.
Everything's fine and dandy, the images are displaying and everything's in place, but if I scroll down a few items, then scroll up, the images that were previously there have now disappeared, all other properties of type string, DateTime and etc are still there, only the images are missing.
I tried creating a new property of type string for my object, called it "UserImageURL" and gave it an Url of some random google image for every instance of my object, and set it's binding in the listview, as such:
<controls:CircleImage Aspect="AspectFill" WidthRequest="40" HorizontalOptions="Start" VerticalOptions="Start" HeightRequest="40" FillColor="#f3cc31" Margin="0,0,4,2" **Source="{Binding UserImageURL**}" > </controls:CircleImage>
Not only does the listview show the new image, but unlike the ImageSource ones, the Url ones are still there after scrolling up and down.
I need to use ImageSource for the image, and not Url, anyone done this before? Any ideas? Sample projects? Thanks in advance!