File Picker Options
Common PickerOptions
Title
Gets or sets the text that appears in the title bar of a picker.
SuggestedStartLocation
Gets or sets the initial location where the file open picker looks for files to present to the user.
Can be obtained from previously picked folder or using StorageProvider.TryGetFolderFromPathAsync or StorageProvider.TryGetWellKnownFolderAsync.
This is a suggestion for the system, that can ignore this parameter, if application doesn't have access to the folder or it doesn't exist.
On Linux some DBus file picker don't support start location. For using GTK Free Desktop disable UseDBusFilePicker in X11PlatformOptions
FilePickerOpenOptions
AllowMultiple
Gets or sets an option indicating whether open picker allows users to select multiple files.
FileTypeFilter
Gets or sets the collection of file types that the file open picker displays.
To create a list of file types for the file picker:
//This can also be applied for SaveFilePicker.
var files = await _target.StorageProvider.OpenFilePickerAsync(new FilePickerOpenOptions()
{
Title = title,
//You can add either custom or from the built-in file types. See "Defining custom file types" on how to create a custom one.
FileTypeFilter = new[] { ImageAll, FilePickerFileTypes.TextPlain }
});