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); }
/// <summary> /// Clear WebDataCache /// </summary> private void ClearWebDataCacheCommandAction() { WebDataCache.ClearAll(); }