Class OpenFileDialogBuilder
Represents a builder that can create a Avalonia.Controls.OpenFileDialog.
Inheritance
OpenFileDialogBuilder
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
Returns
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
WithDirectory(string?)
Set the initial directory of the dialog
Declaration
public OpenFileDialogBuilder WithDirectory(string? directory)
Parameters
Type |
Name |
Description |
string |
directory |
|
Returns
WithTitle(string?)
Set the title of the dialog
Declaration
public OpenFileDialogBuilder WithTitle(string? title)
Parameters
Type |
Name |
Description |
string |
title |
|
Returns