在WPF应用程序中使用的FolderBrowserDialog [英] Using FolderBrowserDialog in WPF application

查看:929
本文介绍了在WPF应用程序中使用的FolderBrowserDialog的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个WPF应用程序,我需要让用户访问目录。我已搜索到世界如何窗口形式集成到WPF结束,发现各种信息如何表单控件集成到我XAML,但是,整合的FolderBrowserDialog ...

I have a WPF application that I need to have users access directories in. I have searched to the end of the world on how to integrate windows forms into WPF and have found all kinds of information on how to integrate form controls into my xaml, however, integrating a FolderBrowserDialog...

我的老程序员,但很新的.NET(其实第2天),我相信我找不到immplementing这仅仅是因为我不能确定什么名字/类型是一个的FolderBrowserDialog良好的信息。

I am veteran programmer, but very new to .net (2nd day in fact), and I believe I can not find good information on immplementing this simply because I can not determine what the name/type is for a FolderBrowserDialog.

请帮忙。谢谢, -David

Please help. thanks, -David

呵呵,我使用C#和Visual Studio 2008

Oh, and I am using c# and Visual Studio 2008

推荐答案

您需要添加对System.Windows.Forms.dll的引用,然后使用<一个href="http://msdn.microsoft.com/en-us/library/system.windows.forms.folderbrowserdialog.aspx"><$c$c>System.Windows.Forms.FolderBrowserDialog类。

You need to add a reference to System.Windows.Forms.dll, then use the System.Windows.Forms.FolderBrowserDialog class.

添加使用的WinForms = System.Windows.Forms的; 将有助于

这篇关于在WPF应用程序中使用的FolderBrowserDialog的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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