C# WPF的Windows资源管理器控件?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1444472/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-06 16:36:14  来源:igfitidea点击:

Windows Explorer control for WPF?

c#wpfwindowsexplorer

提问by PlayKid

Is there a way to have a Windows Explorer on WPF? The closes I can get is the Web Browser, but it's not really what I need.

有没有办法在 WPF 上使用 Windows 资源管理器?我可以关闭的是 Web 浏览器,但这并不是我真正需要的。

Please assist.

请协助。

Thanks

谢谢

回答by PlayKid

Check out the explorer browser control in the Windows API Code Pack.Compatible with Vista and 7, I believe.

查看Windows API 代码包中的资源管理器浏览器控件我相信与 Vista 和 7 兼容。

回答by Grokys

I have written a WinForms library that might help. It's not WPF but you can host it in a WPF application.

我写了一个可能有帮助的 WinForms 库。它不是 WPF,但您可以将它托管在 WPF 应用程序中。

You can find the library at: http://gong-shell.sourceforge.net/

您可以在以下位置找到该库:http: //gong-shell.sourceforge.net/

回答by Quarkly

You can also check this out. It's fresh to the market and you'll need to pay, but it was designed to be identical in every way to the Windows Explorer Chrome:

你也可以看看这个。它刚刚上市,您需要付费,但它的设计在各方面都与 Windows Explorer Chrome 相同:

http://www.teraque.com/products/explorer-chrome-suite/

http://www.teraque.com/products/explorer-chrome-suite/

The controls you get for free from WPF look like crap. They are only meant to get developers started.

您从 WPF 中免费获得的控件看起来很垃圾。它们只是为了让开发人员入门。

回答by Slim Aloui

this might help:

这可能有帮助:

 var?ofd?=?new?Microsoft.Win32.OpenFileDialog()
?{
??????Filter?=?"Fichiers?vidéos?(*.avi)|*.avi|Tous?les?fichiers?(*.*)|*.*"
?};
?
?if?(ofd.ShowDialog()????false)
?{
??????var?d?=?ofd.FileNames;
?}

回答by Joachim Marder

JAM Software recently released a WPF edition of their ShellBrowser controls. They contain a wrapped Windows Explorer as well as custom built tree and list controls. Also included is a preview control similar to the one in the Windows Explorer on the right. Full disclosure: I am one of the developers of ShellBrowser.

JAM Software 最近发布了其 ShellBrowser 控件WPF 版本。它们包含一个包装的 Windows 资源管理器以及自定义构建的树和列表控件。还包括一个类似于右侧 Windows 资源管理器中的预览控件。完全披露:我是 ShellBrowser 的开发人员之一。