Skip to content

FileDialogServiceExtensions.Show method (1 of 4)

Shows an open file dialog over the active application window and blocks until it is closed.

Namespace: Eremex.AvaloniaUI.Controls.ApplicationServices
Assembly: Eremex.Avalonia.Controls.ApplicationServices.dll
NuGet Package: Eremex.Avalonia.Controls.ApplicationServices

Declaration

public static string[] Show(this IOpenFileDialogService service, OpenFileDialogOptions? options)

Parameters

name type description
service IOpenFileDialogService The open file dialog service.
options OpenFileDialogOptions? The dialog options.

Returns

type description
string[] The selected files, or an empty array when the dialog was cancelled.

See Also


FileDialogServiceExtensions.Show method (2 of 4)

Shows a save file dialog over the active application window and blocks until it is closed.

Namespace: Eremex.AvaloniaUI.Controls.ApplicationServices
Assembly: Eremex.Avalonia.Controls.ApplicationServices.dll
NuGet Package: Eremex.Avalonia.Controls.ApplicationServices

Declaration

public static string? Show(this ISaveFileDialogService service, SaveFileDialogOptions? options)

Parameters

name type description
service ISaveFileDialogService The save file dialog service.
options SaveFileDialogOptions? The dialog options.

Returns

type description
string? The chosen file, or null when the dialog was cancelled.

See Also


FileDialogServiceExtensions.Show method (3 of 4)

Shows an open file dialog over the given Avalonia top level and blocks until it is closed.

Namespace: Eremex.AvaloniaUI.Controls.ApplicationServices
Assembly: Eremex.Avalonia.Controls.ApplicationServices.dll
NuGet Package: Eremex.Avalonia.Controls.ApplicationServices

Declaration

public static string[] Show(this IOpenFileDialogService service, TopLevel? owner, 
    OpenFileDialogOptions? options = null)

Parameters

name type description
service IOpenFileDialogService The open file dialog service.
owner TopLevel? The window (top level) to show the dialog over; null for the active window.
options OpenFileDialogOptions? The dialog options.

Returns

type description
string[] The selected files, or an empty array when the dialog was cancelled.

See Also


FileDialogServiceExtensions.Show method (4 of 4)

Shows a save file dialog over the given Avalonia top level and blocks until it is closed.

Namespace: Eremex.AvaloniaUI.Controls.ApplicationServices
Assembly: Eremex.Avalonia.Controls.ApplicationServices.dll
NuGet Package: Eremex.Avalonia.Controls.ApplicationServices

Declaration

public static string? Show(this ISaveFileDialogService service, TopLevel? owner, 
    SaveFileDialogOptions? options = null)

Parameters

name type description
service ISaveFileDialogService The save file dialog service.
owner TopLevel? The window (top level) to show the dialog over; null for the active window.
options SaveFileDialogOptions? The dialog options.

Returns

type description
string? The chosen file, or null when the dialog was cancelled.

See Also