Class OpenFolderDialogBuilder
Represents a builder that can create a Avalonia.Controls.OpenFolderDialog.
public class OpenFolderDialogBuilder
- Inheritance
-
objectOpenFolderDialogBuilder
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
directorystring
Returns
WithTitle(string?)
Set the title of the dialog
public OpenFolderDialogBuilder WithTitle(string? title)
Parameters
titlestring