-api-id | -api-type |
---|---|
E:Windows.UI.Xaml.Media.ImageBrush.ImageFailed |
winrt event |
Occurs when there is an error associated with image retrieval or format.
<ImageBrush ImageFailed="eventhandler"/>
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.