Artemis Artemis
Artemis Artemis

Search Results for

    Class OpenFileDialogBuilder

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

    Inheritance
    object
    OpenFileDialogBuilder
    Namespace: Artemis.UI.Shared.Services.Builders
    Assembly: Artemis.UI.Shared.dll
    Syntax
    public class OpenFileDialogBuilder

    Methods

    HavingFilter(Action<FileDialogFilterBuilder>)

    Add a filter to the dialog

    Declaration
    public OpenFileDialogBuilder HavingFilter(Action<FileDialogFilterBuilder> configure)
    Parameters
    Type Name Description
    Action<FileDialogFilterBuilder> configure
    Returns
    Type Description
    OpenFileDialogBuilder

    ShowAsync()

    Asynchronously shows the file dialog.

    Declaration
    public Task<string[]?> ShowAsync()
    Returns
    Type Description
    Task<string[]>

    A task that on completion returns an array containing the full path to the selected files, or null if the dialog was canceled.

    WithAllowMultiple()

    Indicate that the user can select multiple files.

    Declaration
    public OpenFileDialogBuilder WithAllowMultiple()
    Returns
    Type Description
    OpenFileDialogBuilder

    WithDirectory(string?)

    Set the initial directory of the dialog

    Declaration
    public OpenFileDialogBuilder WithDirectory(string? directory)
    Parameters
    Type Name Description
    string directory
    Returns
    Type Description
    OpenFileDialogBuilder

    WithTitle(string?)

    Set the title of the dialog

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