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

Set Image CacheValidity timespan in XAML

$
0
0

I have an image in my XAML and I'd like to set a longer timespan for the CacheValidity.

<Image Source="{Binding PictureUrl}" CacheValidity="5" />

I could do this in code by binding to a TimeSpan on my ViewModel, but I'd rather just define a timespan straight in the XAML.

So, how do I write a timespan of 5 days in XAML?


Viewing all articles
Browse latest Browse all 58056

Trending Articles



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