文件系统树视图
是否有一个控件可以让我单击 FS 上的文件夹? 就像右键单击文件并在资源管理器中单击“浏览”后的左侧选项卡一样?
Is there a control that will allow me to click through folders on the FS? Like the left tab after you right click a file and hit explore in explorer?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我认为没有一个控件可以为您执行此操作,但使用 TreeView 控件相对容易。 查看此示例。
I don't think there is a control to do this for you, but it's relatively easy with the TreeView control. Check out this example.
如果您询问是否有 WinForms/WPF 控件 允许您执行此操作,那么答案是否定的。 没有这样的内置控件可用于此目的。
但是,您可以使用 OpenFileDialog 打开一个模式对话框来执行此操作。
If you're asking is there a WinForms/WPF control that will allow you to do this then the answer is no. There is no such built-in control that can be used for this purpose.
You can however open up a modal dialog which does this by using the OpenFileDialog.
我写了一个库,也许可以帮助你。 您可以在以下位置找到它: http://gong-shell.sourceforge.net/
您的控件正在寻找的是ShellTreeView。
I have written a library that might be able to help you. You can find it at: http://gong-shell.sourceforge.net/
The control you're looking for is the ShellTreeView.