Open its-veejay opened 10 years ago
Oh yeah, I faced that issue in my app. But problem is not in JetImageLoader
.
You need to check ImageUri
property for equality and call NotifyPropertyChanged()
only if new value is not equals to previous.
Example of List item model (pseudo C#):
public class ListItemExample
{
private string _imageUri;
public string ImageUri
{
get { return _imageUri; }
set
{
if (!String.Equals(value, _imageUri))
{
_imageUri = value;
NotifyPropertyChanged();
}
}
}
}
Do not call NotifyPropertyChanged()
if image uri value was not changed because it will call JetImageLoader
and it will do his work :)
May be I need to write that in help or example, thank you for the feedback :)
I found one more issue and below is the scenario to replicate it, please have a look on it.
Step 1: Bind a List with Data Template