Class Dialog
A Modal Window. Supports a simple API for adding Buttons across the bottom. By default, the Dialog is centered and used the Dialog scheme.
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>?). This will execute the dialog until
it terminates via the QuitKey (Esc
by default),
or when one of the views or buttons added to the dialog calls
RequestStop(Toplevel?).
Constructors
Properties
- ButtonAlignment
Determines how the Dialog Buttons are aligned along the bottom of the dialog.
- ButtonAlignmentModes
Gets or sets the alignment modes for the dialog's buttons.
- Buttons
Optional buttons to lay out at the bottom of the dialog.
- DefaultBorderStyle
Defines the default border styling for Dialog. Can be configured via ConfigurationManager.
- DefaultButtonAlignmentModes
The default AlignmentModes for Dialog.
- DefaultMinimumHeight
Defines the default minimum Dialog height, as a percentage of the container width. Can be configured via ConfigurationManager.
- DefaultMinimumWidth
Defines the default minimum Dialog width, as a percentage of the container width. Can be configured via ConfigurationManager.
- DefaultShadow
Gets or sets whether all Windows are shown with a shadow effect by default.
Methods
- AddButton(Button)
Adds a Button to the Dialog, its layout will be controlled by the Dialog
- OnGettingAttributeForRole(in VisualRole, ref Attribute)
Called when the Attribute for a GetAttributeForRole(VisualRole) is being retrieved. Implementations can return true to stop further processing and optionally set the Attribute in the event args to a different value.