This event is generated after each image is loaded into the Thumbnail Control.

[Visual Basic] Public Event EndLoadFile As ThumbnailLoadEventHandler
[C#] public event ThumbnailLoadEventHandler EndLoadFile;

Event Data

The event handler retrieves arguments of type  ThumbnailLoadEventArgs

Explanation

The EndLoadFile event is generated after each image is loaded into the Thumbnail Control. Note: This event is NOT generated if a thumbnail file (ThumbnailFile property) is used to load the images. To cancel processing in the thumbnail control, set the Cancel property to True within this event.

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

Regarding properties for the ThumbnailLoadEventArgs class

If an image is unable to be loaded, the ImageNumber parameter will be 0. 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 some information about images loaded.

[Visual Basic.NET]
Private Sub Thumbnail1_EndLoadFile(ByVal sender As Object, ByVal e As Newtone.ImageKit.Wpf.ThumbnailLoadEventArgs) Handles Thumbnail1.EndLoadFile
    Label1.Text = e.ImageNumber.ToString() + " / " + e.TotalImageNumber.ToString();
End Sub

[Visual C#.NET]
private void thumbnail1_EndLoadFile(object sender, Newtone.ImageKit.Wpf.ThumbnailLoadEventArgs e)
{
    label1.Text = e.ImageNumber.ToString() + " / " + e.TotalImageNumber.ToString();
}

See Also

Thumbnail Members | Newtone.ImageKit.Wpf.Thumbnail

 

The ImageKit WPF is created by Newtone Corporation