expressappframework-devexpress-dot-expressapp-dot-systemmodule-6713f741.md
Represents a WindowController descendant that contains Actions for pop-up Windows.
Namespace : DevExpress.ExpressApp.SystemModule
Assembly : DevExpress.ExpressApp.v25.2.dll
NuGet Package : DevExpress.ExpressApp
public class DialogController :
WindowController
Public Class DialogController
Inherits WindowController
The following members return DialogController objects:
The DialogController class is a descendant of the WindowController class. It is intended to present the Accept and Cancel buttons in pop-up Windows. You can inherit from this Controller to modify its behavior.
The Dialog Controller has a peculiarity. It is not added to a Frame’s Frame.Controllers collection automatically. You should add it yourself.
Basically, the Dialog Controller is required in pop-up Windows only. There are two approaches to add a Dialog Controller to a pop-up Window:
Use the PopupWindowShowAction
For details, refer to the Dialog Controller topic.
Use the DialogController.AcceptAction and DialogController.CancelAction properties to access the Dialog Controller’s Accept and Cancel Actions. To change their behavior, use the DialogController.SaveOnAccept and DialogController.CanCloseWindow properties, and handle the DialogController.Accepting and DialogController.Cancelling events.
Information on the DialogController and its Actions is available in the Application Model. To access it, use the Model Editor.
Object MarshalByRefObject Component Controller WindowController DialogController PreviewReportDialogController
See Also