Click or drag to resize

ShellFilePreview Methods

The ShellFilePreview type exposes the following members.

Methods
  NameDescription
Public methodClear
Clears the contents of the preview.
Public methodDispose
Unloads any pending files and finishes running threads.
Protected methodDispose(Boolean)
Unloads any pending files and finishes running threads.
Public methodFolderChanged
Preview is cleared if a new folder has been set.
Public methodGetDisplayRect
Gets display rectangle.
Public methodGetSynchronizationContext
PreviewHost must provide its SynchronizationContext to be used by async events.
Public methodGetWindowHandle
Gets window handle of the main window.
Protected methodOnAfterPreviewLoaded
Calls the AfterPreviewLoaded event.
Public methodOnApplyTemplate
When overridden in a derived class, is invoked whenever application code or internal processes call ApplyTemplate.
(Overrides FrameworkElementOnApplyTemplate.)
Public methodOnCommonPreviewHandlerLoaded
Controls implementing this interface must implement this eventhandler, which is called after the preview has been loaded.
Protected methodOnLoadPreview
Calls the LoadPreview event.
Protected methodOnPropertyChanged
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).)
Protected methodOnRenderSizeChanged
Raises the SizeChanged event, using the specified information as part of the eventual event data.
(Overrides FrameworkElementOnRenderSizeChanged(SizeChangedInfo).)
Protected methodOpen
Opens the given file.
Public methodRemoveCustomPreviewHandler
Removes the visual elements that were added using SetCustomPreviewHandler(UIElement). This is typically called in Unload
Public methodSelectedFileChange
Tries to display the preview or thumbnail of the file.
Public methodSetCustomPreviewHandler
Use this method to add the UI elements representing a custom preview to the ShellFilePreview control.
Top
See Also