Search code examples
c#uwpfilepicker

"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:

enter image description here


Solution

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

    Alternative way you can pick a whole folder with FolderOpenPicker.