Class OpenFolderDialogBuilder
Represents a builder that can create a Avalonia.Controls.OpenFolderDialog.
Namespace: Artemis.UI.Shared.Services.Builders
Assembly: Artemis.UI.Shared.dll
Syntax
public class OpenFolderDialogBuilder
Methods
ShowAsync()
Asynchronously shows the folder 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 folder, or null if the dialog was canceled. |
WithDirectory(string?)
Set the initial directory of the dialog
Declaration
public OpenFolderDialogBuilder WithDirectory(string? directory)
Parameters
Type | Name | Description |
---|---|---|
string | directory |
Returns
Type | Description |
---|---|
OpenFolderDialogBuilder |
WithTitle(string?)
Set the title of the dialog
Declaration
public OpenFolderDialogBuilder WithTitle(string? title)
Parameters
Type | Name | Description |
---|---|---|
string | title |
Returns
Type | Description |
---|---|
OpenFolderDialogBuilder |