.NET中使用CommonOpenFileDialog【打开文件夹】
install-package WindowsAPICodePack
var folderDialog = new CommonOpenFileDialog()
{
Title = "xxx",
IsFolderPicker = true,
};
if (folderDialog.ShowDialog() == CommonFileDialogResult.Ok)
{
string selectedFolder = folderDialog.FileName;
}
#####
愿你一寸一寸地攻城略地,一点一点地焕然一新
#####