Skip to main content

PickerOptions Class

Definition

Assembly:Avalonia.Base
Package:Avalonia
public class PickerOptions

Inheritance: object -> PickerOptions

Constructors

NameDescription
PickerOptionsNo summary available.

PickerOptions Constructor

public PickerOptions()

Properties

NameDescription
SuggestedFileNameGets or sets the file name that the file picker suggests to the user.
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).
TitleGets or sets the text that appears in the title bar of a picker.

SuggestedFileName Property

Gets or sets the file name that the file picker suggests to the user.

public string SuggestedFileName { get; set; }

SuggestedStartLocation Property

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).

public Avalonia.Platform.Storage.IStorageFolder SuggestedStartLocation { get; set; }

Title Property

Gets or sets the text that appears in the title bar of a picker.

public string Title { get; set; }