Controller.AfterConstruction Event

Occurs after a Controller is created.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v18.2.dll

Declaration

public event EventHandler AfterConstruction
Public Event AfterConstruction As EventHandler

Event Data

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

Remarks

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