private void DownloadError(object sender, CachedImageEvents.ErrorEventArgs e) { var image = sender as ExtendedImage; image.DownloadFailed = true; image.HasDownloaded = false; }
private void NewMediaControl_Error(object sender, CachedImageEvents.ErrorEventArgs e) { ErrorInfo t = new ErrorInfo("Error in HLinkVisualDisplay.") { { "Error is ", e.Exception.Message }, }; // Component not found exception if (e.Exception.HResult == -2003292336) { t.Add("Ideas", "Showing bad file, perhaps an internalmediafile or the file type can not be displayed?"); } t.Add("File", (sender as CachedImage).Source.ToString()); App.Current.Services.GetService <IErrorNotifications>().NotifyError(t); (sender as CachedImage).Cancel(); (sender as CachedImage).Source = null; }
private void ImgPhoto_OnError(object sender, CachedImageEvents.ErrorEventArgs e) { }
/// <summary> /// Just logs the image loading error in case /// </summary> /// <param name="sender">event sender</param> /// <param name="e">event args</param> private void ImageEx_Error(object sender, CachedImageEvents.ErrorEventArgs e) { Debug.WriteLine((e.Exception.Message)); }
void OnError(object sender, CachedImageEvents.ErrorEventArgs e) { _label.Text = $"Error : {e.Exception.Message}"; }
private void HeroImage_Error(object sender, CachedImageEvents.ErrorEventArgs e) { // App.Logger.Track($"SpeakerImageLoadFailed:{e.Exception}", "Source", HeroImage.Source.ToString()); }