Artemis Artemis
Artemis Artemis

Search Results for

    Class SaveFileDialogBuilder

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

    Inheritance
    object
    SaveFileDialogBuilder
    Namespace: Artemis.UI.Shared.Services.Builders
    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
    Type Name Description
    Action<FileDialogFilterBuilder> configure
    Returns
    Type Description
    SaveFileDialogBuilder

    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
    Type Description
    SaveFileDialogBuilder

    WithInitialFileName(string?)

    Set the initial file name of the dialog

    Declaration
    public SaveFileDialogBuilder WithInitialFileName(string? initialFileName)
    Parameters
    Type Name Description
    string initialFileName
    Returns
    Type Description
    SaveFileDialogBuilder

    WithTitle(string?)

    Set the title of the dialog

    Declaration
    public SaveFileDialogBuilder WithTitle(string? title)
    Parameters
    Type Name Description
    string title
    Returns
    Type Description
    SaveFileDialogBuilder
    Content is available under the PolyForm Noncommercial License, by Artemis RGB.