In Windows 7 (and I think Vista) the Explorer has a preview pane that lets you see the contents for some file types (MS Office, images, etc). Is there any API available that allows you to access this functionality?
I've been using the WindowsAPICodePack which has a ShellFile.Thumbnail, but this seems to only expose the thumbnail icon for file types that Explorer is able to view. For instance, for a Word file it only displays the MS Word icon, where Explorer can actually preview the contents of the file. It does work like I want for image types, but not for other types of files.
First, let's check out the preview pane in File Explorer. Open File Explorer in Windows 10, click the View tab, and select Preview pane. Click a file you wish to view, such as a Word document, Excel sheet, PowerPoint presentation, PDF, or image. The file appears in the preview pane.
Click on the Advanced system settings under Related settings in the right-hand pane. Click on the Settings button in the Performance option under the Advanced tab in the System Properties window. Change the Performance Options window settings to Adjust for best appearance. Hit OK after clicking Apply.
It's called Peek and it performs functionally the same as the MacOS version. With a file selected in Explorer you press Shift+Spacebar to see a preview of it. Once the preview pops up, you have options for what to do next. For images you'll be able to zoom in and out, and edit them in the Photos app.
IPreviewHandler
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With