Is there an OpenFileOrFolderDialog object in .NET?

前端 未结 6 959
清酒与你
清酒与你 2021-01-12 08:36

Is it possible to use the OpenFileDialog class select a file OR folder? It appears only to allow the selection of a file, if you select a folder and then choose open it wil

6条回答
  •  -上瘾入骨i
    2021-01-12 09:12

    I'd suggest taking a look at the Ookii Dialogs libraries which have an implementation of a folder browser dialog for Windows Forms and WPF respectively:

    Ookii.Dialogs.Wpf

    https://github.com/augustoproiete/ookii-dialogs-wpf


    Ookii.Dialogs.WinForms

    https://github.com/augustoproiete/ookii-dialogs-winforms

提交回复
热议问题