private void RaiseImageFailedEvent(Exception exp) { var newArgs = new GifImageExceptionRoutedEventArgs(ImageFailedEvent, this); newArgs.ErrorException = exp; RaiseEvent(newArgs); }