Click or drag to resize

JamBaseShellListViewThumbnailUpdated Event

This event is fired for each item in Thumbnail view. It can be used to update the thumbnail.

Namespace:  Jam.Shell
Assembly:  ShellBrowser (in ShellBrowser.dll) Version: 6.2
Syntax
public event EventHandler<ThumbnailUpdatedEventArgs> ThumbnailUpdated

Value

Type: SystemEventHandlerThumbnailUpdatedEventArgs
Remarks
The event is not called if a custom image index has been assigned to the item.
Examples
C#
//The following example draws a frame around the thumbnails of folders.
private void ShellListView1_ThumbnailUpdated(object sender, Shell.ThumbnailUpdatedEventArgs e)
{
    if (e.Item.IsFolder)
    {
        using (Graphics g = Graphics.FromImage(e.Thumbnail))
        using (Pen p = new Pen(SystemBrushes.Control, 1))
        {
            g.DrawRectangle(p, 0, 0, e.Thumbnail.Width - 1, e.Thumbnail.Height - 1);
        }
    }

}
See Also