C# 如何在windows文件资源管理器中选择多个文件
我想打开Windows资源管理器,选择多个图像,然后复制并粘贴到另一个文件夹。C# 如何在windows文件资源管理器中选择多个文件,c#,xaml,uwp,C#,Xaml,Uwp,我想打开Windows资源管理器,选择多个图像,然后复制并粘贴到另一个文件夹。 然而,我使用的这段代码对我没有帮助在此处输入代码尝试使用多文件方法 // Set up the file picker. Windows.Storage.Pickers.FileOpenPicker openPicker = new Windows.Storage.Pickers.FileOpenPicker(); openPicker.Sugge
然而,我使用的这段代码对我没有帮助<代码>在此处输入代码尝试使用多文件方法
// Set up the file picker.
Windows.Storage.Pickers.FileOpenPicker openPicker =
new Windows.Storage.Pickers.FileOpenPicker();
openPicker.SuggestedStartLocation =
Windows.Storage.Pickers.PickerLocationId.PicturesLibrary;
openPicker.ViewMode =
Windows.Storage.Pickers.PickerViewMode.Thumbnail;
//Filter to include a sample subset of file types.
openPicker.FileTypeFilter.Clear();
openPicker.FileTypeFilter.Add(".png");
openPicker.FileTypeFilter.Add(".jpeg");
openPicker.FileTypeFilter.Add(".jpg");
//Open the file picker.
Windows.Storage.StorageFile file =
await openPicker.PickSingleFileAsync();
阅读本文:
openPicker.PickMultipleFilesAsync()