public AnimationErrorEventArgs(object source, Exception exception, AnimationErrorKind kind) { Source = source; #endif Exception = exception; Kind = kind; }
internal void OnError(Image image, Exception exception, AnimationErrorKind kind) { #if WPF image.RaiseEvent(new AnimationErrorEventArgs(image, exception, kind)); #elif WINRT Error?.Invoke(image, new AnimationErrorEventArgs(exception, kind)); #endif }
internal static void OnError(Image image, Exception exception, AnimationErrorKind kind) { #if WPF image.RaiseEvent(new AnimationErrorEventArgs(image, exception, kind)); #elif WINRT || SILVERLIGHT Error?.Invoke(image, new AnimationErrorEventArgs(image, exception, kind)); #endif }
internal static void OnError(object sender, Exception exception, AnimationErrorKind kind) { EventHandler <AnimationErrorEventArgs> handler = Error; if (handler != null) { var e = new AnimationErrorEventArgs(exception, kind); handler(sender, e); } }
internal static void OnError(Image image, Exception exception, AnimationErrorKind kind) { // ISSUE: reference to a compiler-generated field EventHandler <AnimationErrorEventArgs> error = AnimationBehavior.Error; if (error == null) { return; } Image image1 = image; AnimationErrorEventArgs e = new AnimationErrorEventArgs(exception, kind); error(image1, e); }
public AnimationErrorEventArgs(Exception exception, AnimationErrorKind kind) { _exception = exception; _kind = kind; }
protected virtual void OnError(Exception ex, AnimationErrorKind kind) { Error?.Invoke(this, new AnimationErrorEventArgs(AnimationSource, ex, kind)); }
public AnimationErrorEventArgs(Exception exception, AnimationErrorKind kind) #endif { Exception = exception; Kind = kind; }
public AnimationErrorEventArgs(object source, Exception exception, AnimationErrorKind kind) : base(AnimationBehavior.ErrorEvent, source)
internal static void OnError(Image image, Exception exception, AnimationErrorKind kind) { image.RaiseEvent(new AnimationErrorEventArgs(image, exception, kind)); }
public AnimationErrorEventArgs(Exception exception, AnimationErrorKind kind) { this.Exception = exception; this.Kind = kind; }