本文整理汇总了C#中System.Windows.ExceptionRoutedEventArgs类的典型用法代码示例。如果您正苦于以下问题:C# ExceptionRoutedEventArgs类的具体用法?C# ExceptionRoutedEventArgs怎么用?C# ExceptionRoutedEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ExceptionRoutedEventArgs类属于System.Windows命名空间,在下文中一共展示了ExceptionRoutedEventArgs类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: img_ImageFailed
static void img_ImageFailed(object sender, ExceptionRoutedEventArgs e)
{
BitmapImage img = sender as BitmapImage;
img.ImageFailed -= new EventHandler<ExceptionRoutedEventArgs>(img_ImageFailed);
img.ImageOpened -= new EventHandler<RoutedEventArgs>(img_ImageOpened);
loadCount--;
}
开发者ID:liwq-net,项目名称:SilverSprite,代码行数:7,代码来源:ImageLoader.cs
示例2: Image_ImageFailed
static void Image_ImageFailed([NotNull] object sender, ExceptionRoutedEventArgs e)
{
Contract.Requires(sender != null);
var resourceKey = GetResourceKey((Image)sender);
var message = e.ErrorException.Maybe().Return(ex => ex.Message, @"No exception");
Trace.TraceError(string.Format(CultureInfo.InvariantCulture, "Load image with resource key '{0}' failed: {1}", resourceKey, message));
}
开发者ID:tom-englert,项目名称:TomsToolbox,代码行数:7,代码来源:ImageExtensions.cs
示例3: element_MediaFailed
void element_MediaFailed(object sender, ExceptionRoutedEventArgs e)
{
if (MediaFailed != null)
{
MediaFailed(sender, e);
}
}
开发者ID:acampos,项目名称:chromeless-silverlight,代码行数:7,代码来源:ProgressiveDownloadElement.cs
示例4: imageContent_ImageFailed
private void imageContent_ImageFailed(object sender, ExceptionRoutedEventArgs e)
{
var img = sender as Image;
img.Opacity = 1;
System.Windows.Media.Imaging.BitmapImage bm = new System.Windows.Media.Imaging.BitmapImage(new Uri(@"/Assets/Images/NoImage.png", UriKind.RelativeOrAbsolute));
imageContent.Source = bm;
}
开发者ID:Tuanna123,项目名称:MangaOL,代码行数:7,代码来源:UcImageData.xaml.cs
示例5: bs_ImageFailed
private void bs_ImageFailed(object sender, ExceptionRoutedEventArgs args)
{
FailedToLoad = true;
Loader.AddLoadableException(new Exception("ImageSilverlight - Failed to load image."));
if (loadedCallback != null) loadedCallback(this, false);
loadedCallback = null;
}
开发者ID:reignstudios,项目名称:ReignSDK,代码行数:7,代码来源:ImageSilverlight.cs
示例6: player_MediaFailed
private void player_MediaFailed(object sender, ExceptionRoutedEventArgs e) {
stateDisplay.State=PlaybackState.Stopped;
player.Source=null;
if (server != null) { server.Stop(); server.Start(); }
player.Source=playerSource;
player.Play();
stateDisplay.State=PlaybackState.Connecting;
}
开发者ID:drdax,项目名称:Radio,代码行数:8,代码来源:StudioWindow.xaml.cs
示例7: ImageFailed
private void ImageFailed(object sender, ExceptionRoutedEventArgs e)
{
_bitmapImage.ImageOpened -= ImageOpened;
_bitmapImage.ImageFailed -= ImageFailed;
_tcs.SetException(e.ErrorException);
_handle.Free();
}
开发者ID:Izuzusama,项目名称:4charm,代码行数:8,代码来源:ImageUtils.cs
示例8: GetImageSourceImageFailed
private static void GetImageSourceImageFailed(object sender, ExceptionRoutedEventArgs e)
{
var image = sender as Image;
if (image != null)
{
image.Source = null;
image.ImageFailed -= GetImageSourceImageFailed;
}
}
开发者ID:brbulic,项目名称:Where.Common,代码行数:9,代码来源:SimpleTile.cs
示例9: ItemImage_ImageFailed
public void ItemImage_ImageFailed(object o, ExceptionRoutedEventArgs e)
{
ItemImage.ImageFailed -= new EventHandler<ExceptionRoutedEventArgs>(ItemImage_ImageFailed);
#if DEBUG
//TalentImage_ImageFailed2(o, e); // Tell me what happened
//TalentImage.ImageFailed += new EventHandler<ExceptionRoutedEventArgs>(TalentImage_ImageFailed2);
#endif
// Getting the Image from the Armory failed, lets try another source
if (itemInstance != null)
{
ItemImage.Source = Icons.AnIcon(ItemInstance.Item.IconPath);
}
else if (NonItemImageSource != null)
{
ItemImage.Source = Icons.AnIcon(NonItemImageSource);
}
}
开发者ID:LucasPeacecraft,项目名称:rawr,代码行数:17,代码来源:ItemListItem.cs
示例10: Image_ImageFailed
private void Image_ImageFailed(object sender, ExceptionRoutedEventArgs e)
{
Image img = sender as Image;
RotateTransform rotateTransform = img.RenderTransform as RotateTransform;
// Create and define animation
DoubleAnimation anima = new DoubleAnimation();
anima.From = 0;
anima.To = 360;
anima.Duration = new Duration(TimeSpan.FromSeconds(0.5));
// Set attached properties
Storyboard.SetTarget(anima, rotateTransform);
Storyboard.SetTargetProperty(anima, new PropertyPath(RotateTransform.AngleProperty));
// Create storyboard, add animation, and fire it up!
Storyboard storyboard = new Storyboard();
storyboard.Children.Add(anima);
storyboard.Begin();
}
开发者ID:radhac88,项目名称:HelloPhone,代码行数:20,代码来源:MainPage.xaml.cs
示例11: MediaElementOnMediaFailed
private void MediaElementOnMediaFailed(object sender, ExceptionRoutedEventArgs args)
{
if (_textBlockError == null) {
_textBlockError = new TextBlock {
Foreground = Brushes.White,
FontSize = 14,
Margin = new Thickness(2),
HorizontalAlignment = HorizontalAlignment.Left,
VerticalAlignment = VerticalAlignment.Top,
TextWrapping = TextWrapping.WrapWithOverflow,
Effect = new DropShadowEffect {
ShadowDepth = 0,
Color = Colors.Black,
BlurRadius = 8
}
};
((Grid) Content).Children.Add(_textBlockError);
}
_textBlockError.Text = $"Playing {_mediaElement.Source} failed.\n{args.ErrorException.Message}";
}
开发者ID:thoemmi,项目名称:AerialForWindows,代码行数:21,代码来源:ScreenSaverWindow.cs
示例12: Image1_ImageFailed
private void Image1_ImageFailed(object sender, ExceptionRoutedEventArgs e)
{
MessageBox.Show("Error Sucker");
}
开发者ID:RoykoSerhiy,项目名称:visualStudio_projects,代码行数:4,代码来源:MainWindow.xaml.cs
示例13: pictureBoxWaveForm_ImageFailed
private void pictureBoxWaveForm_ImageFailed(object sender, ExceptionRoutedEventArgs e)
{
}
开发者ID:kaizadj,项目名称:ebu-radio-production,代码行数:4,代码来源:AudioPlayer.xaml.cs
示例14: OnMediaFailed
private void OnMediaFailed(object sender, ExceptionRoutedEventArgs e)
{
System.Diagnostics.Debug.WriteLine("SoundManager: Media failed. {0}", e.ErrorException.Message);
lock (_syncRoot)
{
_isPlaying = false;
}
}
开发者ID:WFoundation,项目名称:WF.Player.WinPhone,代码行数:9,代码来源:SoundManager.cs
示例15: mediaElement_MediaFailed
private void mediaElement_MediaFailed(object sender, ExceptionRoutedEventArgs e)
{
MessageBox.Show(e.ErrorException.Message, "Media Failure", MessageBoxButton.OK);
}
开发者ID:amrzagloul,项目名称:Windows-Phone-8-In-Action,代码行数:4,代码来源:MainPage.xaml.cs
示例16: media_MediaFailed
void media_MediaFailed(object sender, ExceptionRoutedEventArgs e) {
SendEvent(e.ToString());
}
开发者ID:GerHobbelt,项目名称:mediaelement,代码行数:3,代码来源:MainPage.xaml.cs
示例17: DetailedCloseImageButton_ImageFailed
private void DetailedCloseImageButton_ImageFailed( object sender, ExceptionRoutedEventArgs e )
{
}
开发者ID:Letractively,项目名称:lunar-thu,代码行数:3,代码来源:MainWindow.xaml.cs
示例18: image_SplashScreen_ImageFailed
private void image_SplashScreen_ImageFailed(object sender, ExceptionRoutedEventArgs e)
{
}
开发者ID:cikidot,项目名称:game-xna-herobot,代码行数:3,代码来源:SplashScreen.xaml.cs
示例19: MediaElement_OnMediaFailed
private void MediaElement_OnMediaFailed(object sender, ExceptionRoutedEventArgs e)
{
MessageBox.Show(e.ErrorException.Message);
}
开发者ID:KutsyndaPavlo,项目名称:Exam_70-511_Test_samples,代码行数:4,代码来源:MediaPlayer.xaml.cs
示例20: mediaPlayer_MediaFailed
void mediaPlayer_MediaFailed(object sender, ExceptionRoutedEventArgs e)
{
try
{
SetNextMedia();
}
catch { }
}
开发者ID:rtegarp,项目名称:TugasAkhir,代码行数:8,代码来源:ucPlayList.xaml.cs
注:本文中的System.Windows.ExceptionRoutedEventArgs类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论