Skip to main content
.NET 6.0+

XafApplication Class

Manages an XAF application.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v24.1.dll

NuGet Package: DevExpress.ExpressApp


public abstract class XafApplication :


The XafApplication class contains methods to create Controllers, Views, Object Space (see BaseObjectSpace), and other XAF elements. Its properties specify application name and title, configuration string, provide access to the Application Model, modules and the strategy that manages View visibility. You can customize many built-in mechanisms to manage your application. For this purpose, use XafApplication‘s events.

XAF creates and initializes a XafApplication descendant as follows:

Platform Created and Initialized File
ASP.NET Core Blazor When IXafApplicationProvider.GetApplication() is called for the first time (usually when XAF initializes the page). Startup.cs
Windows Forms In the Main method. Program.cs
ASP.NET Web Forms When a session starts. Global.asax.cs
Application Server In the ApplicationServerService constructor. ApplicationServerService.cs
Backend Web API Service / REST API Only during initialization. Startup.cs


XafApplication is not available in Web API Service endpoints. XAF creates it on service initialization only for compatibility check and localization services setup.

To configure your application, use Application Builder.

Extension Methods

See Also