Class SaveFileDialogBuilder
Represents a builder that can create a Avalonia.Controls.SaveFileDialog.
public class SaveFileDialogBuilder
- Inheritance
-
objectSaveFileDialogBuilder
Methods
HavingFilter(Action<FileDialogFilterBuilder>)
Add a filter to the dialog
public SaveFileDialogBuilder HavingFilter(Action<FileDialogFilterBuilder> configure)
Parameters
configureAction<FileDialogFilterBuilder>
Returns
ShowAsync()
Asynchronously shows the save file dialog.
public Task<string?> ShowAsync()
Returns
- Task<string>
A task that on completion contains the full path of the save location, or null if the dialog was canceled.
WithDirectory(string?)
Set the initial directory of the dialog
public SaveFileDialogBuilder WithDirectory(string? directory)
Parameters
directorystring
Returns
WithInitialFileName(string?)
Set the initial file name of the dialog
public SaveFileDialogBuilder WithInitialFileName(string? initialFileName)
Parameters
initialFileNamestring
Returns
WithTitle(string?)
Set the title of the dialog
public SaveFileDialogBuilder WithTitle(string? title)
Parameters
titlestring