Image.ImageFailed event

1 out of 4 rated this helpful - Rate this topic

Occurs when there is an error associated with image retrieval or format.

Syntax


public event ExceptionRoutedEventHandler ImageFailed


<Image ImageFailed="eventhandler"/>

Event information

Delegate ExceptionRoutedEventHandler

Remarks

Conditions in which this event can occur include:

  • File not found
  • Invalid (unrecognized or unsupported) file format
  • Unknown file format decoding error after upload

You might be able to use the ErrorMessage in event data to determine the nature of the failure.

ImageFailed and ImageOpened are mutually exclusive. One event or the other will always file whenever an Image has a Source value set or reset.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Namespace

Windows.UI.Xaml.Controls
Windows::UI::Xaml::Controls [C++]

Metadata

Windows.winmd

See also

Image

 

 

Build date: 3/12/2013

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.