Method ShowModal
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.
public virtual ModalResult ShowModal()
Returns
- 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.
public virtual ModalResult ShowModal(Window? owner)
Parameters
owner
WindowA window that will own this window.
Returns
- ModalResult
The return value is the value of the ModalResult property before window closes.