Table of Contents

Interface IVmDialogController

Namespace
Dmnk.Blazor.Dialogs.Api
Assembly
Dmnk.Blazor.Dialogs.dll

The entry point for application code to show dialogs.

public interface IVmDialogController
Extension Methods

Methods

DefaultIconForIntent(MessageBoxType)

Return the default icon for a given message box type. This can be used by the MessageBoxViewModel and other similar dialogs to get the appropriate icon for the type of message box they are showing.

Icon DefaultIconForIntent(MessageBoxType type)

Parameters

type MessageBoxType

Returns

Icon

Show<T>(VmDialogParameters, T)

Show the dialog for a given viewmodel.

Dialog views are resolved via DI through IViewModelRegistry. Register view-viewmodel pairs using ViewModelRegistration in your DI setup (e.g. via AddFluentMvvmDialogs()).

Task<VmDialogReference> Show<T>(VmDialogParameters parameters, T viewModel) where T : IVmDialogViewModel

Parameters

parameters VmDialogParameters
viewModel T

Returns

Task<VmDialogReference>

Type Parameters

T