Creating a Modal Dialog Window
To create a modal dialog window:
- Create a new window and set its properties as follows:
- Window Style Dialog. (Valid only on
Microsoft Windows.)
- Modal Yes.
- Width/Height Optional. (A dialog typically
is smaller than the modeless window from which the end user invokes it.)
- Create a content canvas and set its Window property
to the modal window you created in Step 1.
- Create the items that will appear in the window.
- Decide on the events that will display and close the modal dialog at runtime.