Skip to main content

PickerOptions Class

Common options for OpenFolderPickerAsync(FolderPickerOpenOptions), OpenFilePickerAsync(FilePickerOpenOptions) and SaveFilePickerAsync(FilePickerSaveOptions) methods.

Definition

Namespace: Avalonia.Platform.Storage
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public class PickerOptions
View Source
InheritanceObject → PickerOptions
DerivedAvalonia.Platform.Storage.FilePickerOpenOptions
Avalonia.Platform.Storage.FilePickerSaveOptions
Avalonia.Platform.Storage.FolderPickerOpenOptions

Constructors

PickerOptions()Initializes a new instance of the PickerOptions class

Properties

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 TryGetFolderFromPathAsync(Uri) or TryGetWellKnownFolderAsync(WellKnownFolder).
TitleGets or sets the text that appears in the title bar of a picker.

Methods

Equals(Object)Determines whether the specified object is equal to the current object.
(Inherited from Object)
Finalize()Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCode()Serves as the default hash function.
(Inherited from Object)
GetType()Gets the Type of the current instance.
(Inherited from Object)
MemberwiseClone()Creates a shallow copy of the current Object.
(Inherited from Object)
ToString()Returns a string that represents the current object.
(Inherited from Object)

See Also

Reference

Avalonia.Platform.Storage Namespace