Example





In This Topic
GdPicture14.WPF Namespace / ThumbnailEx Class / FileTypeNotSupportedEvent Field

FileTypeNotSupportedEvent Field

In This Topic
Occurs when a file type is not supported by the control. It is possible to provide a specific Bitmap to be used in the item through the CustomBitmap property.
Syntax
'Declaration
 
Public FileTypeNotSupportedEvent As EventHandler(Of ThumbnailEx.FileTypeNotSupportedEventArgs)
public EventHandler<ThumbnailEx.FileTypeNotSupportedEventArgs> FileTypeNotSupportedEvent
public field FileTypeNotSupportedEvent: EventHandler; 
public var FileTypeNotSupportedEvent : EventHandler;
public: EventHandler<ThumbnailEx.FileTypeNotSupportedEventArgs*>* FileTypeNotSupportedEvent
public:
EventHandler<ThumbnailEx.FileTypeNotSupportedEventArgs^>^ FileTypeNotSupportedEvent
Example
Implementing a custom bitmap for unknown file type.
Private Sub  ThumbnailEx1_FileTypeNotSupported( ByVal sender As object , ByVal e As GdPicture14.WPF.ThumbnailEx.FileTypeNotSupportedEventArgs) Handles ThumbnailEx1.FileTypeNotSupported
e.ReleaseBitmap = True
Using gdPictureImaging As New GdPictureImaging
   e.CustomBitmapID = gdPictureImaging.CreateGdPictureImageFromFile("unsupported.png")
End Using
End Sub
See Also