Class Dialog
The DialogView is a Window that by default is centered and contains one or more Buttons. It defaults to the Dialog color scheme and has a 1 cell padding around the edges.
public class Dialog : Window, IDisposable, ISupportInitializeNotification, ISupportInitialize
- Inheritance
-
Dialog
- Implements
- Derived
- Inherited Members
Remarks
To run the Dialog modally, create the Dialog, and pass it to Run(Func<Exception, bool>). This will execute the dialog until it terminates via the [ESC] or [CTRL-Q] key, or when one of the views or buttons added to the dialog calls RequestStop(Toplevel).
Constructors
- Dialog(ustring, int, int, params Button[])
Initializes a new instance of the Dialog class using Computed positioning and an optional set of Buttons to display
- Dialog(ustring, params Button[])
Initializes a new instance of the Dialog class using Computed positioning and with an optional set of Buttons to display
Properties
- ButtonAlignment
Determines how the DialogButtons are aligned along the bottom of the dialog.
Methods
- AddButton(Button)
Adds a Button to the Dialog, its layout will be controlled by the Dialog
- ProcessKey(KeyEvent)
If the view is focused, gives the view a chance to process the keystroke.