Representation of a modal popup dialog in Studio Pro. It is topmost and blocking. The only current allowed usage of this class is to implement the WebViewModalDialogViewModel
class, used to show a modal dialog containing a IWebView
from ShowDialog
.
public abstract class ModalDialogViewModelBase : ViewModelBase
name | description |
---|---|
Height { get; set; } | The height of the dialog. If not provided, the dialog will have a default size. It can be changed while the dialog is open. |
OnClosed { get; set; } | Optional action to execute when the dialog is closed. |
OnClosing { get; set; } | Optional action to execute when the user attempts to close the dialog. |
Title { get; } | Title of the dialog. Empty by default. |
Width { get; set; } | The width of the dialog. If not provided, the dialog will have a default size. |
A dialog can be opened with IDialogService
.
- class ViewModelBase
- namespace Mendix.StudioPro.ExtensionsAPI.UI.Dialogs