ShellFilePreview Methods |
The ShellFilePreview type exposes the following members.
Name | Description | |
---|---|---|
Clear | Clears the contents of the preview. | |
Dispose |
Unloads any pending files and finishes running threads.
| |
Dispose(Boolean) | Unloads any pending files and finishes running threads. | |
FolderChanged | Preview is cleared if a new folder has been set. | |
GetDisplayRect | Gets display rectangle. | |
GetSynchronizationContext |
PreviewHost must provide its SynchronizationContext to be used by async events.
| |
GetWindowHandle | Gets window handle of the main window. | |
OnAfterPreviewLoaded | Calls the AfterPreviewLoaded event. | |
OnApplyTemplate |
When overridden in a derived class, is invoked whenever application code or internal
processes call ApplyTemplate.
(Overrides FrameworkElementOnApplyTemplate.) | |
OnCommonPreviewHandlerLoaded |
Controls implementing this interface must implement this eventhandler, which is called after
the preview has been loaded.
| |
OnLoadPreview |
Calls the LoadPreview event.
| |
OnPropertyChanged |
Invoked whenever the effective value of any dependency property on this
FrameworkElement has been updated. The specific dependency
property that changed is reported in the arguments parameter. Overrides
OnPropertyChanged(DependencyPropertyChangedEventArgs).
(Overrides FrameworkElementOnPropertyChanged(DependencyPropertyChangedEventArgs).) | |
OnRenderSizeChanged |
Raises the SizeChanged event, using the
specified information as part of the eventual event data.
(Overrides FrameworkElementOnRenderSizeChanged(SizeChangedInfo).) | |
Open | Opens the given file. | |
RemoveCustomPreviewHandler | Removes the visual elements that were added using SetCustomPreviewHandler(UIElement). This is typically called in Unload | |
SelectedFileChange | Tries to display the preview or thumbnail of the file. | |
SetCustomPreviewHandler | Use this method to add the UI elements representing a custom preview to the ShellFilePreview control. |