Closes a modal dialog previously opened from the ShowDialog method. It returns errors if trying to close a dialog that was not previously opened or that has already been closed.
public void CloseDialog(ModalDialogViewModelBase dialog)| exception | condition |
|---|---|
| Exception | dialog is null. |
| Exception | Thrown if the dialog was not initialized correctly. |
- class ModalDialogViewModelBase
- interface IDialogService
- namespace Mendix.StudioPro.ExtensionsAPI.UI.Services