The xamDialogWindow control allows you to create modal or modeless dialog windows within your application.
- Modal dialog – This dialog window always maintains the active window status until it is closed. When a modal dialog window is opened, your end user cannot interact with any other part of the application until the dialog window is closed. This is useful, for example if an error occurs and you need your end user to correct the error before they can continue.
- Modeless dialog – This dialog window allows your end user to interact with the rest of the application while it remains open. Modeless dialog windows are usually used for informational purposes and do not require a response from the end user.
To set the modal type of the dialog window, you simply set the xamDialogWindow control’s IsModal property.
The following code demonstrates how to create a modal dialog window.
In Visual Basic: