expressappframework-devexpress-dot-expressapp-00bac005.md
The base class for Controllers.
Namespace : DevExpress.ExpressApp
Assembly : DevExpress.ExpressApp.v25.2.dll
NuGet Package : DevExpress.ExpressApp
public abstract class Controller :
Component,
ISupportUpdate
Public MustInherit Class Controller
Inherits Component
Implements ISupportUpdate
The following members return Controller objects:
Use Controllers to change your application’s flow or implement custom user interaction. Custom code in a Controller is executed when XAF creates a Window or Frame for this Controller.
Controllers also serve as containers for Actions.
Controllers in XAF support dependency injection in .NET ASP.NET Core Blazor and Windows Forms applications.
To implement a Controller, inherit from the Controller class or one of its descendants, such as:
ViewControllerUsed to implement custom features in nested or root ViewsWindowControllerUsed to implement custom features in Windows.
The DevExpress Template Kit includes ready-to-use Controller templates that allow you to create a custom Controller in your project.
Note
CodeRush allows you to add Actions and Controllers with a few keystrokes. To learn about the Code Templates for XAF , refer to the following help topic: XAF Templates.
XAF supplies built-in Controllers to perform basic functions in ASP.NET Core Blazor and Windows Forms applications. To customize the behavior of a particular Controller in code, inherit from it or subscribe to its events. For additional information, refer to the following topics:
XAF automatically instantiates public Controllers with public parameterless constructors.
To provide custom code that XAF performs at runtime, use Controller’s activation and deactivation mechanisms.
To activate or deactivate a Controller, use the Controller.Active property.
To determine the current state of a Controller, use the Controller.Active property in a conditional expression. Alternatively, use the BoolList.ResultValue property of the object that the Controller.Active property returns.
To provide custom code that XAF executes each time a Controller is activated or deactivated, handle the Controller.Activated and Controller.Deactivated events or override the OnActivated and OnDeactivated methods.
To access a Controller’s Action collection in code, use the Controller.Actions property.
Show 59 items
Object MarshalByRefObject Component Controller ReportServiceController
ListEditorInplaceEditController
PopupWindowTemplateClosingController
ObjectViewController<ViewType, ObjectType>
ProcessDataLockingInfoController
PopupWindowTemplateSizeController
FileAttachmentListViewController
PersistenceValidationController
ListViewProcessCurrentObjectController
BlazorHideDetailViewNewActionController
BlazorHideRefreshActionController
DashboardConfirmationUnsavedChangesController
HasRightsToModifyMemberController
See Also