Click or drag to resize

ThumbnailViewSelectedIndexChanged Event

Occurs when the selected thumbnail index changes.

Namespace:  Atalasoft.Imaging.WinControls
Assembly:  Atalasoft.dotImage.WinControls (in Atalasoft.dotImage.WinControls.dll) Version: 11.0.0.0.0.297 (.NET 4.5.2, x86)
Syntax
public event EventHandler SelectedIndexChanged

Value

Type: SystemEventHandler
Remarks
Handle this event to respond to the user clicking or navigating to a thumbnail with the keyboard in order to view the full size image in an associated ImageViewer control.
Examples
SelectedIndexChanged (C#)
private void thumbnailView1_SelectedIndexChanged(object sender, System.EventArgs e)
{
     if (thumbnailView1.SelectedIndices.Count > 0)
     {
          workspaceViewer1.Open(_currentFile, thumbnailView1.SelectedIndices[0]);
     }
}
SelectedIndexChanged (Visual Basic)
Private  Sub thumbnailView1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles thumbnailView1.SelectedIndexChanged
     If thumbnailView1.SelectedIndices.Count > 0 Then
          workspaceViewer1.Open(_currentFile, thumbnailView1.SelectedIndices(0))
     End If
End Sub
See Also