Class DialogWindow
A dialog box is a Window descendant with a title bar and sometimes a system menu, which can be moved around the screen. It can contain controls and other windows and is often used to allow the user to make some choice or to answer a question.
public class DialogWindow : Form, IBaseObject, IDisposableObject, ISupportInitialize, IFocusable, ITextProperty, IComponent, INotifyDataErrorInfo, IWindow, IControl, IDisposable, IWin32Window
- Inheritance
-
DialogWindow
- Implements
- Derived
Remarks
Example of how a DialogWindow can look:
Constructors
- DialogWindow()
Initializes a new instance of the DialogWindow class.
- DialogWindow(WindowKind)
Initializes a new instance of the DialogWindow class.
Properties
- EnterModalResult
Gets or sets ModalResult of the ENTER key.
- EscModalResult
Gets or sets ModalResult of the ESC key.
- Modal
Gets a value indicating whether this window is displayed modally.
- ModalResult
Gets or sets the modal result value, which is the value that is returned from the ShowModal() method. This property is set to None at the moment ShowModal() is called.
Methods
- GetWindowKind()
Gets window kind (window, dialog, etc.).
- OnKeyDown(KeyEventArgs)
Called when the KeyDown event is raised.
- 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.
- 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.