Skip to content

StartupDialogService class

The default IStartupDialogService implementation. It hosts the view model in a DialogWindow like DialogService, but tolerates the absence of an owner window: during application startup, before any window exists, it shows the dialog non-modally and pumps a local event loop until it closes, so a result is still returned.

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

Declaration

public class StartupDialogService : IStartupDialogService

Constructors

name description
StartupDialogService() Legacy bridge for code that creates the service directly, without a container. Requires an initialized Current.
StartupDialogService(…) Primary constructor. Dependencies are passed explicitly, so the service can be created by any DI container and substituted in tests.

Methods

name description
ShowDialog<T>(…)

See Also