PickerOptions Class
Definition
Common options for Avalonia.Platform.Storage.IStorageProvider.OpenFolderPickerAsync(Avalonia.Platform.Storage.FolderPickerOpenOptions), Avalonia.Platform.Storage.IStorageProvider.OpenFilePickerAsync(Avalonia.Platform.Storage.FilePickerOpenOptions) and Avalonia.Platform.Storage.IStorageProvider.SaveFilePickerAsync(Avalonia.Platform.Storage.FilePickerSaveOptions) methods.
public class PickerOptions
Constructors
| Name | Description |
|---|---|
| PickerOptions | No summary available. |
PickerOptions Constructor
public PickerOptions()
Properties
| Name | Description |
|---|---|
| SuggestedFileName | Gets or sets the file name that the file picker suggests to the user. |
| 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). |
| Title | Gets 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; }