Interface IVmDialogController
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
typeMessageBoxType
Returns
Show<T>(VmDialogParameters, T)
Show the dialog for a given viewmodel.
Before calling this, the component should be registered with its corresponding viewmodel using e.g. Register<TComponent, TViewModel>().
Task<VmDialogReference> Show<T>(VmDialogParameters parameters, T viewModel) where T : IVmDialogViewModel
Parameters
parametersVmDialogParametersviewModelT
Returns
Type Parameters
T