wpf中的文件夹浏览器对话框 [英] folder browser dialog in wpf

查看:132
本文介绍了wpf中的文件夹浏览器对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



点击按钮我需要打开对话框浏览文件夹,设置文本框控件下载的路径。



在wpf中有任何内置控件,



实际我需要设置文本路径一旦我选择文件夹。



我是wpf的初学者。请帮帮我..

解决方案

WPF中没有内置控件。你有两个选择:



使用来自WinForms的文件夹浏览器对话框 [ ^ ]



使用用于Microsoft®.NETFramework的Windows®API代码包 [ ^ ]



WFF文件夹浏览器 [ ^ ]在CodePorject上


< pre lang = C ++> close()方法


Hi All,

In button click i need to open dialog to browse a folder to set a path to Textbox controls download something.

In wpf is any built in control is there,

Actual i need to set the path to text once i select the folder.

I am beginner to wpf. please help me on this..

解决方案

There is no built in control in WPF. You have a couple of options though:

Using folder browser dialogs from WinForms[^]

Using Windows® API Code Pack for Microsoft® .NET Framework[^]

WPF Folder Browser[^] here on CodePorject


<pre lang="c++">close()


这篇关于wpf中的文件夹浏览器对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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