XafApplication.DashboardViewCreating Event

Occurs when creating a Dashboard View.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v18.1.dll


public event EventHandler<DashboardViewCreatingEventArgs> DashboardViewCreating

The event handler receives an argument of the DashboardViewCreatingEventArgs type. The DashboardViewCreatingEventArgs properties provide information specific to this event.

Handle this event to provide a custom Dashboard View instead of a default one. Use the handler's ViewCreatingEventArgs.ViewID parameter to get information on the created Dashboard View. To do this use the application's XafApplication.FindModelView method passing the View ID as a parameter. Create the Dashboard View in the Object Space passed as the handler's ViewCreatingEventArgs.ObjectSpace parameter.