Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

Controller.Activated Event

Occurs when a Controller is activated.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v20.2.dll


public event EventHandler Activated

Event Data

The Activated event's data class is EventArgs.


This event represents the most useful aspect of Controllers. Handle this event to execute custom code when a Controller is activated, for example, to manage the Controller’s Actions visibility and availability. You can also access the current Window and its Action Containers if this Controller is a WindowController class descendant. If it is a ViewController class descendant, you can customize the current View.


View Controllers are activated after setting a View for their ViewController.View property. Window Controllers are activated after setting a Window for their WindowController.Window property.

A Controller is activated when the Controller.Active collection does not have any elements that have the value set to false left.

For details on how to use Controllers, refer to the Controllers topic.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Activated event.


The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also