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: 7.1
Syntax public event EventHandler<LoadPreviewEventArgs> LoadPreview
Public Event LoadPreview As EventHandler(Of LoadPreviewEventArgs)
public:
event EventHandler<LoadPreviewEventArgs^>^ LoadPreview {
void add (EventHandler<LoadPreviewEventArgs^>^ value);
void remove (EventHandler<LoadPreviewEventArgs^>^ value);
}
member LoadPreview : IEvent<EventHandler<LoadPreviewEventArgs>,
LoadPreviewEventArgs>
Value
Type:
SystemEventHandlerLoadPreviewEventArgsExamples
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 See Also