예제 #1
0
        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;
        }
예제 #3
0
 private void ImgPhoto_OnError(object sender, CachedImageEvents.ErrorEventArgs e)
 {
 }
예제 #4
0
 /// <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));
 }
예제 #5
0
 void OnError(object sender, CachedImageEvents.ErrorEventArgs e)
 {
     _label.Text = $"Error : {e.Exception.Message}";
 }
예제 #6
0
 private void HeroImage_Error(object sender, CachedImageEvents.ErrorEventArgs e)
 {
     // App.Logger.Track($"SpeakerImageLoadFailed:{e.Exception}", "Source", HeroImage.Source.ToString());
 }