The requested page is not available for the requested platform. You are viewing the content for Default platform.

DialogController Class

Represents a WindowController descendant that contains Actions for pop-up Windows.

Namespace: DevExpress.ExpressApp.SystemModule

Assembly: DevExpress.ExpressApp.v18.2.dll

Declaration

public class DialogController :
    WindowController
Public Class DialogController
    Inherits WindowController
    Implements

Remarks

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:

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.

See Also