Class Dialog
The DialogView is a Window that by default is centered and contains
one or more Buttons. It defaults to the Colors.ColorSchemes ["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(Toplevel, Func<Exception, bool>, ConsoleDriver). 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
Properties
- ButtonAlignment
Determines how the DialogButtons are aligned along the bottom of the dialog.
- Buttons
Optional buttons to lay out at the bottom of the dialog.
- DefaultButtonAlignment
The default Dialog.ButtonAlignments for Dialog.
Methods
- AddButton(Button)
Adds a Button to the Dialog, its layout will be controlled by the Dialog
- LayoutSubviews()
Invoked when a view starts executing or when the dimensions of the view have changed, for example in response to the container view or terminal resizing.