Share via

Set Image Source and CacheValidity

Anonymous
2021-12-25T00:39:05.697+00:00

Hi,

I have the following Image in my app:

<Image Source="{Binding gallery_image}" Aspect="AspectFill" IsLoading="{Binding Item, Mode=TwoWay}" />

but I want to set the CacheValidity to 7 days. However, I am not able to. I tried below:

<Image Aspect="AspectFill" IsLoading="{Binding Item, Mode=TwoWay}">
<Image.Source>
    <UriImageSource Uri="{Binding Image}" CacheValidity="14" CachingEnabled="true"/>
</Image.Source>
</Image>

but this is referring to a UriImageSource when my Source is {Binding gallery_image}

Kindly help..

Thanks,
Jassim

Developer technologies | .NET | Xamarin

1 answer

Sort by: Most helpful
  1. Alessandro Caliaro 4,206 Reputation points
    2021-12-25T08:35:00.67+00:00

    Maybe this could help you

    watch

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.