ShowModal Method
ShowModal()
Opens a window and returns only when the newly opened window is closed. User interaction with all other windows in the application is disabled until the modal window is closed.
Declaration
public ModalResult ShowModal()
Returns
| Type | Description |
|---|---|
| ModalResult | The return value is the value of the ModalResult property before window closes. |
ShowModal(Window)
Opens a window and returns only when the newly opened window is closed. User interaction with all other windows in the application is disabled until the modal window is closed.
Declaration
public ModalResult ShowModal(Window owner)
Parameters
| Type | Name | Description |
|---|---|---|
| Window | owner | A window that will own this window. |
Returns
| Type | Description |
|---|---|
| ModalResult | The return value is the value of the ModalResult property before window closes. |