Class SaveFileDialogBuilder
Represents a builder that can create a Avalonia.Controls.SaveFileDialog.
Inheritance
SaveFileDialogBuilder
Assembly: Artemis.UI.Shared.dll
Syntax
public class SaveFileDialogBuilder
Methods
HavingFilter(Action<FileDialogFilterBuilder>)
Add a filter to the dialog
Declaration
public SaveFileDialogBuilder HavingFilter(Action<FileDialogFilterBuilder> configure)
Parameters
Returns
ShowAsync()
Asynchronously shows the save file dialog.
Declaration
public Task<string?> ShowAsync()
Returns
Type |
Description |
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
Declaration
public SaveFileDialogBuilder WithDirectory(string? directory)
Parameters
Type |
Name |
Description |
string |
directory |
|
Returns
WithInitialFileName(string?)
Set the initial file name of the dialog
Declaration
public SaveFileDialogBuilder WithInitialFileName(string? initialFileName)
Parameters
Type |
Name |
Description |
string |
initialFileName |
|
Returns
WithTitle(string?)
Set the title of the dialog
Declaration
public SaveFileDialogBuilder WithTitle(string? title)
Parameters
Type |
Name |
Description |
string |
title |
|
Returns