Back to Devexpress

XafApplication.DashboardViewCreating Event

expressappframework-devexpress-dot-expressapp-dot-xafapplication-6aab95a3.md

latest3.2 KB
Original Source

XafApplication.DashboardViewCreating Event

Occurs when creating a Dashboard View.

Namespace : DevExpress.ExpressApp

Assembly : DevExpress.ExpressApp.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

csharp
public event EventHandler<DashboardViewCreatingEventArgs> DashboardViewCreating
vb
Public Event DashboardViewCreating As EventHandler(Of DashboardViewCreatingEventArgs)

Event Data

The DashboardViewCreating event's data class is DashboardViewCreatingEventArgs. The following properties provide information specific to this event:

PropertyDescription
IsRootIndicates whether a root View must be created. Inherited from ViewCreatingEventArgs.
ObjectSpaceReturns the Object Space to be used when creating a new View. Inherited from ViewCreatingEventArgs.
ViewSpecifies the Dashboard View which is created in the XafApplication.DashboardViewCreating event.
ViewIDReturns the ID of the created View. Inherited from ViewCreatingEventArgs.

Remarks

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.

See Also

XafApplication Class

XafApplication Members

DevExpress.ExpressApp Namespace