Skip to main content
.NET 6.0+

DevExpress v24.1 Update — Your Feedback Matters

Our What's New in v24.1 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

XafApplication.SettingUp Event

Occurs before initializing the XafApplication class instance.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v24.1.dll

NuGet Package: DevExpress.ExpressApp

#Declaration

public event EventHandler<SetupEventArgs> SettingUp

#Event Data

The SettingUp event's data class is DevExpress.ExpressApp.SetupEventArgs.

#Remarks

This event is raised as a result of calling the XafApplication.Setup method. Handle this event to set custom settings for the XafApplication class instance. To do this, use the handler’s SetupEventArgs.SetupParameters parameter. It provides access to the following: Controllers Manager, module list, connection string, XafApplication.ApplicationName, and XafApplication.ObjectSpaceProvider.

The WinApplication class instance is used in the Windows Forms application project, and the WebApplication class instance is in the ASP.NET Web Forms application project. Both these classes are the XafApplication class descendants.

See Also