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

Image source not updating in listview after property updated in observablecollection

$
0
0

I'm databinding an observablecollection to a listview, and inside a viewcell I have an image, binding the source to a property of the collection items using a converter.
Source="{Binding Status, Converter={StaticResource StatusToImageConverter}}"

This does the job when the page loads, but when the item is clicked, I update the status on the item clicked and expect the image to change, however it doesn't and it doesn't hit the converter either.

I have checked that the item is updated which it does, I then call OnPropertyChanged("MyObservableCollection"); but still nothing. If I go back to the previous page and then return, it has updated then.

Any ideas what I'm doing wrong?


Viewing all articles
Browse latest Browse all 91519

Trending Articles



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