Hi everyone,
How to implement image cache using xaml? There are a property call CacheDuration in xaml but the documentation doesn't clear. Do you have some example with CacheDuration=2 days?
I would like download images only each 2 days.
Thanks.
When using Windows UWP XAML FFImage.CacheDuration is an int which sets cache duration in days, 1 = 1day, 2 = days and so on.
@daniel-luberda Thanks!! I don't understood this, so, I have this code for two days:
<ff:FFImage LoadingPlaceholder="loading.png" ErrorPlaceholder="error.png" Source="{Binding img}" RetryCount="3" RetryDelay="200" CacheDuration="2" />
Now, I undestand!
And How do I set the images stored in cache in my list? It is auto? Thanks. :)
No problem :) Yes, it's automatically cached in memory and disk (for offline usage).
@daniel-luberda Oh thanks!! :)
@vime-o can we close this?
Most helpful comment
When using Windows UWP XAML
FFImage.CacheDurationis anintwhich sets cache duration in days, 1 = 1day, 2 = days and so on.