如何在 WPF 中制作 Windows 资源管理器文件预览屏幕?
我正在开发一个带有附件的应用程序,我想创建一种类似于 Windows 资源管理器中的显示类型,您可以在其中选择“详细信息”视图,并显示预览窗格。
我希望能够根据文件扩展名显示当前所选附件的缩略图。
有谁知道我可以从哪里开始寻找如何实现这一目标的示例?
我知道 Outlook 2007 也可以使用 预览处理程序< /a>. 我认为这将是我想要的方向,但我不知道从哪里开始。
非常感谢。
I'm working on an application that will have attachments, and I would like to create a type of display like in windows Explorer, where you choose a "Details" view, and also show the preview pane.
I would like to be able to show a thumbnail view of the attached file currently selected, based on the file extension.
Does anyone know where I can start to look for examples on how to pull this off?
I know Outlook 2007 can also do something similar using preview handlers. I think that’s going to be the direction I want to go in, but I'm not sure where to start.
Many thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
虽然您可以在 WPF 中执行此操作,但不应执行此操作< /a>.
说真的:不要这样做! - 你会破坏许多应用程序(包括我的一个)。
要在不使用 .NET 的情况下执行此操作,请参阅此处获取详细指南。
While you could do it in WPF, you should not do it.
Seriously: don't do it! - you would break many apps (including one of mine).
To do this without .NET, see here for a nice guide.
我想你可以从这里开始
http://blogs.microsoft.co.il/blogs/eyal/archive/2007/07/29/Hosting-vista_2F00_office-2007-previewers-in-winform-application.aspx
(代码部分是黑底黑字,至少对我来说是这样,但您可以禁用样式或只是复制它)
I think you can start here
http://blogs.microsoft.co.il/blogs/eyal/archive/2007/07/29/Hosting-vista_2F00_office-2007-previewers-in-winform-application.aspx
(the code is partially black on black, at least for me, but you can disable the styles or just copy it)