Skip to main content
.NET 8.0+

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 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() Constructor

In This Article

Creates an instance of the XafApplication class.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

#Declaration

public XafApplication()

#Remarks

Generally, the WinApplication class instance is created in a Windows Forms application, and the WebApplication class instance in an ASP.NET Web Forms application. Both these classes are the descendants of the XafApplication class. Their instances are created when starting the corresponding application (see the Main method implementation in the Windows Forms and ASP.NET Web Forms applications).

Generally, you do not need to use this method. If you need to initialize the application’s settings by custom values, replace the XafApplication.Setup method, which is called after the application has been created (in the Main method).

See Also