示例#1
0
		private void OnImageFailed(object sender, ExceptionRoutedEventArgs exceptionRoutedEventArgs)
		{
			var copy = ImageFailed;
			if (copy != null)
				copy(this, null);

			UpdateMaxZoomFactor();
		}
        void imageElement_ImageFailed(object sender, ExceptionRoutedEventArgs e)
        {
#if SILVERLIGHT
            if (ThumbnailLoadFailed != null) ThumbnailLoadFailed(this, new ThumbnailLoadFailedEventArgs(e.ErrorException.Message));
#else
            if (ThumbnailLoadFailed != null) ThumbnailLoadFailed(this, new ThumbnailLoadFailedEventArgs(e.ErrorMessage));
#endif
        }
        private void BitmapImageFailed(object sender, ExceptionRoutedEventArgs e)
        {
            var bitmap = (BitmapImage)sender;

            bitmap.ImageOpened -= BitmapImageOpened;
            bitmap.ImageFailed -= BitmapImageFailed;

            Image.Source = null;
        }
        private void BitmapImageFailed(object sender, ExceptionRoutedEventArgs e)
        {
            var bitmap = (BitmapImage)sender;

            bitmap.ImageOpened -= BitmapImageOpened;
            bitmap.ImageFailed -= BitmapImageFailed;

            ((MapImage)Children[currentImageIndex]).Source = null;
            BlendImages();
        }
示例#5
0
 private void MediaEle_MediaFailed(object sender, ExceptionRoutedEventArgs e)
 {
     System.Windows.MessageBox.Show("Unable to play " + trackPath + " [" + e.ErrorException.Message + "]");
 }
 private void MainMedia_MediaFailed(object sender, ExceptionRoutedEventArgs e)
 {
     PauseAll();
 }
示例#7
0
 void image_ImageFailed(object sender, ExceptionRoutedEventArgs e)
 {
     RaiseImageFailedEvent(e.ErrorException);
 }
示例#8
0
 void OnImageFailed(object sender, ExceptionRoutedEventArgs e)
 {
     VisualStateManager.GoToState(this, "Failed", true);
 }
示例#9
0
 private void Image_ImageFailed(object sender, ExceptionRoutedEventArgs e)
 {
     int a = 0;
 }
		private void ImageLoadFail(object sender, ExceptionRoutedEventArgs e)
		{
			CleanupImageEvents(sender);

			if (ImageFailed != null)
				ImageFailed.Invoke(sender, e);
		}
示例#11
0
 private void MediaElement_MediaFailed(object sender, ExceptionRoutedEventArgs e)
 {
 }
示例#12
0
 void ControlMediaFailed(object sender, ExceptionRoutedEventArgs e)
 {
     Controller?.OnMediaFailed();
 }
 void OnAdPlayerMediaFailed(object sender, ExceptionRoutedEventArgs e)
 {
     Shutdown();
     OnAdError(new AdMessageEventArgs(e.ErrorException.Message));
 }
示例#14
0
 static void img_ImageFailed(object sender, ExceptionRoutedEventArgs e)
 {
     Image img = sender as Image;
     img.Visibility = Visibility.Collapsed;
 }
 private void ThumbnailFailed(object sender, ExceptionRoutedEventArgs e)
 {
     imageProgress.IsActive             = false;
     imageProgress.Visibility           = Visibility.Collapsed;
     imageFailedMessagePanel.Visibility = Visibility.Visible;
 }
示例#16
0
 void MediaPlayer_MediaFailed(object sender, ExceptionRoutedEventArgs e)
 {
     Log("Media failed" + e.ErrorException);
     StatusBar.Text = "Media playback failed : " + e.ErrorException;
 }
示例#17
0
 private void remoteVideo_MediaFailed_1(object sender, ExceptionRoutedEventArgs e)
 {
     Debug.WriteLine("[InCall] RemoteVideo Failed: " + e.ErrorMessage);
 }
示例#18
0
 private void Image_ImageFailed_Foreman(object sender, ExceptionRoutedEventArgs e)
 {
     var source = (sender as Image).Source as Windows.UI.Xaml.Media.Imaging.BitmapImage;
     source.UriSource = new Uri(WinAppLibrary.Utilities.Helper.BaseUri + "Assets/Foreman/default_foreman.png");
 }
示例#19
0
 private void MenuItem_ImageFailed(object sender, ExceptionRoutedEventArgs e)
 {
 }
示例#20
0
 private void PreviewImage_ImageFailed(object sender, ExceptionRoutedEventArgs e)
 {
 }
        void Image_ImageFailed(object sender, ExceptionRoutedEventArgs e)
        {
            if (State != AdState.Complete && State != AdState.Failed)
            {
                State = AdState.Failed;
                Teardown();
#if SILVERLIGHT
                if (AdError != null) AdError(this, new VpaidMessageEventArgs() { Message = e.ErrorException.Message });
#else
                if (AdError != null) AdError(this, new VpaidMessageEventArgs() { Message = e.ErrorMessage });
#endif
            }
        }
 private void MediaElement_MediaFailed(object sender, ExceptionRoutedEventArgs e)
 {
     Element.OnPlayError(sender, new VideoPlayer.PlayErrorEventArgs(e.ErrorMessage));
 }
示例#23
0
 private void OnImageFailed(object sender, ExceptionRoutedEventArgs e)
 {
     ImageExFailed?.Invoke(this, new ImageExFailedEventArgs(new Exception(e.ErrorMessage)));
     VisualStateManager.GoToState(this, FailedState, true);
 }
示例#24
0
 public void SongFailed(ExceptionRoutedEventArgs eventArgs)
 {
     _eventAggregator.Publish(new PlayFailedMessage(eventArgs.ErrorMessage, eventArgs.OriginalSource));
 }
示例#25
0
 private void TubePlayerOnMediaFailed(object sender, ExceptionRoutedEventArgs exceptionRoutedEventArgs)
 {
 }
示例#26
0
 protected virtual void OnImageFailed(object sender, ExceptionRoutedEventArgs exceptionRoutedEventArgs)
 {
     Log.Warning("Image Loading", $"Image failed to load: {exceptionRoutedEventArgs.ErrorMessage}");
     Element?.SetIsLoading(false);
 }
示例#27
0
 private void MediaFailed(object sender, ExceptionRoutedEventArgs e)
 {
     DisplayErrorMessage(e.ErrorMessage);
 }
示例#28
0
 private void MediaElement_MediaFailed(object sender, ExceptionRoutedEventArgs e)
 {
     timerMoveSlider.Stop();
     MoveNext();
 }
示例#29
0
 void bmpImage_ImageFailed(object sender, ExceptionRoutedEventArgs e)
 {
     OnImageFailed(e);
 }
示例#30
0
 private void ColorImageElement_ImageFailed(object sender, ExceptionRoutedEventArgs e)
 {
 }
示例#31
0
 void media_MediaFailed(object sender, ExceptionRoutedEventArgs e)
 {
     SendEvent(e.ToString());
 }
示例#32
0
 /// <summary>
 /// Handles an image open failure.
 /// </summary>
 /// <param name="sender">The multi scale image.</param>
 /// <param name="e">Exception Routed Event Args.</param>
 private void MultiScaleImage_ImageOpenFailed(object sender, ExceptionRoutedEventArgs e)
 {
 }
示例#33
0
 /// <summary>
 /// Common video failed error handler.
 /// </summary>
 /// <param name="obj"></param>
 /// <param name="args"></param>
 public void VideoOnError(Object obj, ExceptionRoutedEventArgs args)
 {
     NotifyUser("Cannot open video file - error: " + args.ErrorMessage, NotifyType.ErrorMessage);
 }
示例#34
0
        private void _image_ImageFailed(object sender, ExceptionRoutedEventArgs e)
        {
#if WINDOWS_APP
            UpdateStatus(StaticMapStatus.Failed, new Exception(e.ErrorMessage));
#else
            UpdateStatus(StaticMapStatus.Failed, e.ErrorException);
#endif
        }
示例#35
0
 private void Player1_MediaFailed(object sender, ExceptionRoutedEventArgs e)
 {
     Debug.WriteLine(e.ErrorMessage);
 }
示例#36
0
 private void Holder_ImageFailed(object sender, ExceptionRoutedEventArgs e)
 {
     ImageFailed?.Invoke(this, e);
 }
示例#37
0
 private void image2_ImageFailed(object sender, ExceptionRoutedEventArgs e)
 {
 }
 private void Player_MediaFailed(object sender, ExceptionRoutedEventArgs e)
 {
     rootPage.NotifyUser(string.Format("Failed to load '{0}'", video.Title), NotifyType.ErrorMessage);
 }
示例#39
0
 private void media_MediaFailed(object sender, ExceptionRoutedEventArgs e)
 {
     // An empty media fails ie no patrick found causes empty media.
     MuteMicrophone(false);
 }
        void mediaPlayer_MediaFailed(object sender, ExceptionRoutedEventArgs e)
        {
#if SILVERLIGHT
            if (StreamFailed != null) StreamFailed(this, new StreamFailedEventArgs(e.ErrorException.Message));
#else
            if (StreamFailed != null) StreamFailed(this, new StreamFailedEventArgs(e.ErrorMessage));
#endif
        }