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

Controller.AfterConstruction Event

Occurs after a Controller is created.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v19.1.dll


public event EventHandler AfterConstruction
Public Event AfterConstruction As EventHandler

Event Data

The AfterConstruction event handler receives an argument of the EventArgs type.


Handle this event to perform specific actions directly after creating the current Controller. For instance, initialize the Controller's properties that are not listed in the Designer's Propertieswindow.

The following example demonstrates how to specify the ViewController.TargetObjectType property:

public partial class MyCustomController : ViewController {
   // ...
   private void MyCustomController_AfterConstruction(object sender, EventArgs e) {
      TargetObjectType = typeof(ReportData);
See Also