Click or drag to resize

ShellFilePreviewLoadPreview Event

Event is thrown when a file is previewed. It can be implemented to set a custom preview control.

Namespace:  Jam.Shell
Assembly:  ShellBrowser (in ShellBrowser.dll) Version: 6.3
Syntax
public event EventHandler<LoadPreviewEventArgs> LoadPreview

Value

Type: SystemEventHandlerLoadPreviewEventArgs
Examples
This example shows how to use the HTML preview handler for files with the extensions CSM:
private void shellFilePreview1_LoadPreview(object sender, LoadPreviewEventArgs e)
{
  if (string.IsNullOrEmpty(e.Path))
    return;
  if (".cms".Equals(Path.GetExtension(e.Path), StringComparison.OrdinalIgnoreCase))
    e.PreviewHandlerGuid = new Guid("F8B8412B-DEA3-4130-B36C-5E8BE73106AC");
}
Examples
To provide a custom Previewhandler see example at CustomPreviewHandler
See Also