FilePickerOpenOptions Class
Definition
Options class for Avalonia.Platform.Storage.IStorageProvider.OpenFilePickerAsync(Avalonia.Platform.Storage.FilePickerOpenOptions) method.
public class FilePickerOpenOptions
Constructors
| Name | Description |
|---|---|
| FilePickerOpenOptions | No summary available. |
FilePickerOpenOptions Constructor
public FilePickerOpenOptions()
Properties
| Name | Description |
|---|---|
| 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. |
| SuggestedFileType | Gets or sets the file type that should be preselected when the dialog is opened. |
| SuggestedFileName | Gets or sets the file name that the file picker suggests to the user. Inherited from PickerOptions. |
| 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 Avalonia.Platform.Storage.IStorageProvider.TryGetFolderFromPathAsync(Uri) or Avalonia.Platform.Storage.IStorageProvider.TryGetWellKnownFolderAsync(Avalonia.Platform.Storage.WellKnownFolder). Inherited from PickerOptions. |
| Title | Gets or sets the text that appears in the title bar of a picker. Inherited from PickerOptions. |
AllowMultiple Property
Gets or sets an option indicating whether open picker allows users to select multiple files.
public bool AllowMultiple { get; set; }
FileTypeFilter Property
Gets or sets the collection of file types that the file open picker displays.
public System.Collections.Generic.IReadOnlyList<Avalonia.Platform.Storage.FilePickerFileType> FileTypeFilter { get; set; }
SuggestedFileType Property
Gets or sets the file type that should be preselected when the dialog is opened.
public Avalonia.Platform.Storage.FilePickerFileType SuggestedFileType { get; set; }
Remarks
This value should reference one of the items in Avalonia.Platform.Storage.FilePickerOpenOptions.FileTypeFilter. If not set, the first file type in Avalonia.Platform.Storage.FilePickerOpenOptions.FileTypeFilter may be selected by default.