C# - WPF - 让文件夹的浏览器对话框,而无需使用System.Windows.Forms的? [英] C# - WPF - getting folder browser dialog without using System.Windows.Forms?

查看:240
本文介绍了C# - WPF - 让文件夹的浏览器对话框,而无需使用System.Windows.Forms的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这样的 WPF 应用程序,我想有从用户得到一个目录路径有作用。我想用某个文件夹的浏览器对话框,而是我不要想从 System.Windows.Forms的实现它或内部使用一些巨大的脚本。有一些路径在WPF中获得对话已经实现了?

I have this WPF app and I want to have there function of getting a directory path from the user. I would like to use some folder browser dialog but I don't want to implement it from System.Windows.Forms or use some huge script inside. Is there some path getting dialog in WPF already implemented?

我已阅读答案类似的问题在这里,但它充满了System.Windows.Forms的..

I have read answers to similar questions here but it was full of System.Windows.Forms..

我还没有发现类似的事情在工具箱中,我开始使用WPF,所以我可以使用一些帮助。

I haven't found anything like that in the Toolbox and I'm starting with WPF so I could use some help.

感谢你在前进:]

推荐答案

请参阅我的回答的选择文件夹对话框WPF 。基本上的Windows presentation基金会4.5食谱建议您使用的Windows®API code包为Microsoft .NET框架如果你需要一个文件夹浏览器

See my answer to Select folder dialog WPF. Basically the Windows Presentation Foundation 4.5 Cookbook recommends that you use the Windows® API Code Pack for Microsoft® .NET Framework if you need a folder browser.

这篇关于C# - WPF - 让文件夹的浏览器对话框,而无需使用System.Windows.Forms的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆