Skip to main content

FilePickerOpenOptions Class

Definition

Assembly:Avalonia.Base
Package:Avalonia
public class FilePickerOpenOptions

Inheritance: object -> PickerOptions -> FilePickerOpenOptions

Constructors

NameDescription
FilePickerOpenOptionsNo summary available.

FilePickerOpenOptions Constructor

public FilePickerOpenOptions()

Properties

NameDescription
AllowMultipleGets or sets an option indicating whether open picker allows users to select multiple files.
FileTypeFilterGets or sets the collection of file types that the file open picker displays.
SuggestedFileTypeGets or sets the file type that should be preselected when the dialog is opened.
SuggestedFileNameGets or sets the file name that the file picker suggests to the user. Inherited from PickerOptions.
SuggestedStartLocationGets 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.
TitleGets 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.