This event is generated just after a thumbnail image is displayed in the Thumbnail Control.

[Visual Basic] Public Event ShowThumbnailImage As ThumbnailEventHandler
[C#] public event ThumbnailEventHandler ShowThumbnailImage;

Event Data

The event handler retrieves arguments of type ThumbnailEventArgs

Explanation

The ShowThumbImage event is generated just after a thumbnail image is displayed in the thumbnail control.

Information about files loaded during this event can be referred to within the ThumbnailLoadEventArgs arguments.

Regarding property for the ThumbnailEventArgs class

When multi-page image files are loaded, the page number is appended to the FileName parameter (If the page number is 0 then it is omitted).

Example: When page 2 of the file ABC.TIF is loaded into the thumbnail control, the FileName parameter will return the string "ABC.TIF 2".

Example

Displays image numbers

[Visual Basic.NET]
Private Sub Thumbnail1_ShowThumbnailImage(ByVal sender As Object, ByVal e As Newtone.ImageKit.Wpf.ThumbnailEventArgs) Handles Thumbnail1.ShowThumbnailImage
    Label1.Text = e.ImageNumber.ToString()
End Sub

[Visual C#.NET]
private void thumbnail1_ShowThumbnailImage(object sender, Newtone.ImageKit.Wpf.ThumbnailEventArgs e)
{
    label1.Text = e.ImageNumber.ToString();
}

See Also

Thumbnail Members | Newtone.ImageKit.Wpf.Thumbnail

 

The ImageKit WPF is created by Newtone Corporation