Table of Contents

Class SaveFileDialogBuilder

Namespace
Artemis.UI.Shared.Services.Builders
Assembly
Artemis.UI.Shared.dll

Represents a builder that can create a Avalonia.Controls.SaveFileDialog.

public class SaveFileDialogBuilder
Inheritance
object
SaveFileDialogBuilder

Methods

HavingFilter(Action<FileDialogFilterBuilder>)

Add a filter to the dialog

public SaveFileDialogBuilder HavingFilter(Action<FileDialogFilterBuilder> configure)

Parameters

configure Action<FileDialogFilterBuilder>

Returns

SaveFileDialogBuilder

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

directory string

Returns

SaveFileDialogBuilder

WithInitialFileName(string?)

Set the initial file name of the dialog

public SaveFileDialogBuilder WithInitialFileName(string? initialFileName)

Parameters

initialFileName string

Returns

SaveFileDialogBuilder

WithTitle(string?)

Set the title of the dialog

public SaveFileDialogBuilder WithTitle(string? title)

Parameters

title string

Returns

SaveFileDialogBuilder