FFImageLoading: CachedImage.InvalidateCache has no effect
Hi,
I have a listview with CachedImages bound to an ObservableCollection. When I change elements of the ObservableCollection the Image get’s updated. In cases if only the underlying Imagefile changes I want to have the Image Updated. I’m trying this by calling
CachedImage.InvalidateCache(imagepath, FFImageLoading.Cache.CacheType.Disk);
But nothing is updated.
This is the Bound Object:
[ImplementPropertyChanged]
[JsonObject(IsReference = true)]
public class CatalogueEntry : INotifyPropertyChanged
{
[JsonProperty(IsReference = true)]
private Catalogue catalogue;
public CatalogueEntry(Catalogue parent)
{
catalogue = parent;
}
public string Name { get; set; }
public string Description { get; set; }
public string UUID { get; set; }
public string ThumbPath
{
get { return catalogue.FolderPath + UUID + ".jpg"; }
}
public Catalogue Parent
{
get { return catalogue; }
set { catalogue = value; }
}
public event PropertyChangedEventHandler PropertyChanged;
}
In Xaml I bind ImageSource to ThumbPath.
What should I do?
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 26 (12 by maintainers)
You should reapply the source
eg.
or call new
ReloadImage
method (not available on nuget yet).