DXDialog Class
Represents the dialog.
Namespace: DevExpress.Xpf.Core
Assembly: DevExpress.Xpf.Core.v14.2.dll
#Declaration
[TemplatePart(Name = "YesButton", Type = typeof(Button))]
[TemplatePart(Name = "OkButton", Type = typeof(Button))]
[TemplatePart(Name = "NoButton", Type = typeof(Button))]
[TemplatePart(Name = "CancelButton", Type = typeof(Button))]
[TemplatePart(Name = "Footer", Type = typeof(Panel))]
public class DXDialog :
DXWindow
#Remarks
A dialog can contain title, text or any other content and command buttons. To open a dialog as modal, enable its IsModal property. In this instance, it retains input focus while open and an end-user cannot switch to another window until this window is closed.
The DXDialog.Buttons property allows you to specify which buttons should be displayed within a dialog. The caption is specified by the Title property.
When an end-user closes the window or the Hide method has been called, the Closing event is raised, allowing you to cancel the action. The dialog result is returned by the DXDialog.DialogResult property. The DXDialog.DefaultDialogResult property allows you to specify the result returned by the DXDialog.DialogResult property, when the dialog has been invoked and a user presses the ENTER key.