Skip to content

Latest commit

 

History

History
36 lines (23 loc) · 1.24 KB

imagebrush_imagefailed.md

File metadata and controls

36 lines (23 loc) · 1.24 KB
-api-id -api-type
E:Windows.UI.Xaml.Media.ImageBrush.ImageFailed
winrt event

Windows.UI.Xaml.Media.ImageBrush.ImageFailed

-description

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

-xaml-syntax

<ImageBrush ImageFailed="eventhandler"/>

-remarks

If this event fires, that means that the ImageSource value has been asynchronously determined to not be available, or is not suitable for use. Conditions in which this event can occur include:

  • File not found
  • Invalid (unrecognized or unsupported) file format
  • Unknown file format decoding error after upload An ImageBrush in this situation won't display anything. There is no default "missing image" placeholder image for app images as there might be when a browser can't resolve an image URI. If you want behavior like that you'll have to implement it.

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

-examples

-see-also