Sunday, April 27, 2008

Use File Preview Handlers in your (WPF) Application

CodeProject - Using Vista Preview Handlers in a WPF Application

"First of all, what is a preview handler? Preview handler is a COM object, that is called when you want to display the preview of your item. In other words, preview handlers are lightweight, rich and read-only previews of file’s content in a reading pane. You can find preview handlers in Microsoft Outlook 2007, Windows Vista and, even sometimes in XP. Can we use preview handlers within our WPF application? Probably we can. Let’s see how we can do it.

WPFPReview

...

And now we're finished. We can use unmanaged preview handlers to display content of our files, held by the WPF application. Also, if you want, you can create your own preview handlers and they'll appear in your WPF application as well as they'll magically appear in Outlook. "

If the Preview Handlers are already there on your system, might as well get the best use of them you can!

I can thing of a couple cool things to do with this...

No comments: