Back to Devexpress

Controller.Activated Event

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

latest3.1 KB
Original Source

Controller.Activated Event

Occurs when a Controller is activated.

Namespace : DevExpress.ExpressApp

Assembly : DevExpress.ExpressApp.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

csharp
public event EventHandler Activated
vb
Public Event Activated As EventHandler

Event Data

The Activated event's data class is EventArgs.

Remarks

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.

Note

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.

See Also

Deactivated

Access the Settings of a Property Editor in a Detail View

Hide or Disable an Action (Button, Menu Item) in Code

Access the Navigation Control

UI Element Overview

Controller Class

Controller Members

DevExpress.ExpressApp Namespace