public async Task <Uri> GetLocalImageUri(Uri webUri)
        {
            //First delete all old images
            try
            {
                await WebDataCache.ClearAll();
            }
            catch (Exception e)
            {
            }

            //Download and save image
            var localUri = await WebDataCache.GetLocalUriAsync(webUri);

            return(localUri);
        }
Example #2
0
 /// <summary>
 /// Clear WebDataCache
 /// </summary>
 private void ClearWebDataCacheCommandAction()
 {
     WebDataCache.ClearAll();
 }