Back to Devexpress

Controller.AfterConstruction Event

expressappframework-devexpress-dot-expressapp-dot-controller-bf6725f4.md

latest1.5 KB
Original Source

Controller.AfterConstruction Event

Occurs after a Controller is created.

Namespace : DevExpress.ExpressApp

Assembly : DevExpress.ExpressApp.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

csharp
public event EventHandler AfterConstruction
vb
Public Event AfterConstruction As EventHandler

Event Data

The AfterConstruction event's data class is EventArgs.

Remarks

Handle this event to perform specific actions directly after creating the current Controller.

The following example specifies the ViewController.TargetObjectType property:

csharp
public partial class MyCustomController : ViewController {
   // ...
   private void MyCustomController_AfterConstruction(object sender, EventArgs e) {
      TargetObjectType = typeof(ReportDataV2);
   }
}

See Also

Controller Class

Controller Members

DevExpress.ExpressApp Namespace