简体   繁体   中英

“Select all” option for FilePicker

Is there a possibility to add a "Select all" option if I call the PickMultipleFilesAsync method of a FilePicker object.

// Create the songs picker
var songsPicker = new FileOpenPicker();
songsPicker.SuggestedStartLocation = PickerLocationId.MusicLibrary;
songsPicker.ViewMode = PickerViewMode.List;
songsPicker.FileTypeFilter.Add(".mp3");
songsPicker.FileTypeFilter.Add(".wav");
songsPicker.FileTypeFilter.Add(".wma");

var inputFiles = await songsPicker.PickMultipleFilesAsync(); // Let the user pick the songs

If the user wants to pick more than one song he has to pick them one at the time. And picking 437 Songs one after another isn't a very good user experience.

It looks like this:

在此处输入图片说明

AS @Tóth Tibor suggested, the multiple file picker UI is not designed for selecting all items. Picking the top level folder should be a solution.

If we need to request a new feature, please submit a feedback in Windows developer feedback site . For the same feature request item, please vote it.

Sadly you cannot modify at this level the FileOpenPicker 's UI.

Alternative way you can pick a whole folder with FolderOpenPicker .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM