/// <summary> /// This method will be called when an error occurs within the animation behaviour /// </summary> /// <param name="d">The dependency object</param> /// <param name="e">The animation error event arguments</param> private void AnimationBehavior_OnError(DependencyObject d, AnimationErrorEventArgs e) { PgbLoading.Visibility = Visibility.Collapsed; ImgView.Visibility = Visibility.Collapsed; MessageBox.Show($"An error occurred ({e.Kind}): {e.Exception}", "AniView", MessageBoxButton.OK, MessageBoxImage.Error); }
private void AnimationBehavior_OnError(DependencyObject d, AnimationErrorEventArgs e) { if (e.Kind == AnimationErrorKind.Loading) { IsDownloading = false; } MessageBox.Show($"An error occurred ({e.Kind}): {e.Exception}"); }
private void ErrorLoadingGraphic(DependencyObject d, AnimationErrorEventArgs e) { // Set graphic to Decamark icon if the url couldn't be loaded AnimationBehavior.SetSourceUri((Image)d, new Uri("https://cdn.bulbagarden.net/upload/archive/8/8e/20090709005535%21Spr_3r_000.png")); }
private void AnimationBehavior_OnError(DependencyObject d, AnimationErrorEventArgs e) { MessageBox.Show($"An error occurred ({e.Kind}): {e.Exception}"); }
private void ErrorEvent(object s, AnimationErrorEventArgs e) { Logger.Error("GIF:" + e.ToString()); MessageBox.Show(Properties.Resources.msgGIFfailure, Properties.Resources.txtLivelyErrorMsgTitle); }