Allows you to asynchronously assign an image to a WinExplorerView record.
[DXCategory("Data")] public event ThumbnailImageEventHandler GetThumbnailImage
<DXCategory("Data")> Public Event GetThumbnailImage As ThumbnailImageEventHandler
The GetThumbnailImage event's data class is ThumbnailImageEventArgs. The following properties provide information specific to this event:
|DataSourceIndex||Gets the index of the currently processed item among other items in the source (the item's index in the bound data source for data-aware controls, e.g., GridControl).|
|DesiredThumbnailSize||Stores the desired size of thumbnail images, generated using the ThumbnailImageEventArgs.CreateThumbnailImage method.|
|ThumbnailImage||Gets or sets the image that will be assigned to an item that fired this event.|
The GetThumbnailImage event is raised each time a WinExplorerView record needs to display its image and both of the following conditions are met:
- the image must be loaded asynchronously (the WinExplorerViewOptionsImageLoad.AsyncLoad property equals true),
- the image must not be taken from the grid View data source (the WinExplorerViewOptionsImageLoad.LoadThumbnailImagesFromDataSource property equals false) or was not found in it.
The event allows you to create a required image by using the ThumbnailImageEventArgs.CreateThumbnailImage method and assign the generated image to the ThumbnailImageEventArgs.ThumbnailImage property. See the Asynchronous Image Load in WinExplorer and Tile Views topic to learn more.
The GetThumbnailImage event is raised from a non-UI thread.