CommonOpenFileDialog 使用
//nuget
//Microsoft.WindowsAPICodePack-Shell
ShellContainer selectedFolder = null;
selectedFolder = KnownFolders.Computer as ShellContainer;
CommonOpenFileDialog commonOpenFileDialog = new CommonOpenFileDialog();
commonOpenFileDialog.InitialDirectoryShellContainer = selectedFolder;
commonOpenFileDialog.EnsureReadOnly = true;
if (commonOpenFileDialog.ShowDialog() == CommonFileDialogResult.Ok)
{
MessageBox.Show(commonOpenFileDialog.FileName);
}