BitmapSource.DecodeFailed Event


Occurs when the image fails to load, due to a corrupt image header.

 virtual event EventHandler<System::Windows::Media::ExceptionEventArgs ^> ^ DecodeFailed;
public virtual event EventHandler<System.Windows.Media.ExceptionEventArgs> DecodeFailed;
member this.DecodeFailed : EventHandler<System.Windows.Media.ExceptionEventArgs> 
Public Overridable Custom Event DecodeFailed As EventHandler(Of ExceptionEventArgs) 

Event Type


DecodeFailed is introduced in the .NET Framework version 3.5. For more information, see Versions and Dependencies.

XAML Text Usage

<object DecodeFailed="EventHandler" .../>

Applies to