none
wpf中用什么控件来选择文件夹 RRS feed

答案

  • dear
    请参考

    OpenFileDialog in WPF
    http://www.c-sharpcorner.com/UploadFile/mahesh/OpenFileDialogwpf08102009142912PM/OpenFileDialogwpf.aspx


    Windows 窗体控件和等效的 WPF 控件
    http://msdn.microsoft.com/zh-cn/library/ms750559.aspx
    秘訣無它,唯勤而已 http://www.dotblogs.com.tw/yc421206/
    2011年1月21日 7:41
  • 您好

    Windows Forms 的 FolderBrowserDialog 控件在 WPF 没有等效控件

    http://msdn.microsoft.com/zh-cn/library/ms750559.aspx

    您可以參考以下文章在 WPF 引用 Windows Forms controls 控件

    演练:在 WPF 中承载 Windows 窗体控件

    或者改用 OpenFileDialog


    歡迎參觀我的Blog.NET菜鳥自救會
    2011年1月21日 18:47
  • 你好 邓大林,

    你的问题更相关于WPF论坛,我觉得你应该把你的问题发到WPF的论坛中,链接是:

    http://social.microsoft.com/Forums/zh-CN/wpfzhchs/threads

    下面我给你回答一下你的问题:“WPF中用什么控件来选择文件夹”。

    鉴于之前的回复(OpenFileDialogFolderBrowserDialog )都无法满足的你的需求,对于这两个Dialog我就不多说了,因为余小章已经回答的很详细很准确了。

    据我所知,还剩的解决方案就是第三方的Dialog了,你看看你公司能接受么?下载地址是:

    http://www.ookii.org/software/dialogs/

    除了这三个解决方案(OpenFileDialogFolderBrowserDialog ,第三方的),我觉得没有别的解决办法了。

     

    This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.

     

    Best regards,


    Sheldon _Xiao [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    2011年1月25日 6:09
    版主

全部回复