Table of Contents

Class OpenFolderDialogBuilder

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

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

public class OpenFolderDialogBuilder
Inheritance
object
OpenFolderDialogBuilder

Methods

ShowAsync()

Asynchronously shows the folder dialog.

public Task<string?> ShowAsync()

Returns

Task<string>

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

WithDirectory(string?)

Set the initial directory of the dialog

public OpenFolderDialogBuilder WithDirectory(string? directory)

Parameters

directory string

Returns

OpenFolderDialogBuilder

WithTitle(string?)

Set the title of the dialog

public OpenFolderDialogBuilder WithTitle(string? title)

Parameters

title string

Returns

OpenFolderDialogBuilder