.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
The page you are viewing does not exist in the .NET Standard 2.0+ platform documentation. This link will take you to the parent topic of the current section.
.NET Core 3.0+
The page you are viewing does not exist in the .NET Core 3.0+ platform documentation. This link will take you to the parent topic of the current section.

WebApplication.Settings Property

Specifies settings of the ASP.NET application's Templates content.

Namespace: DevExpress.ExpressApp.Web

Assembly: DevExpress.ExpressApp.Web.v20.1.dll


public TemplateContentSettings Settings { get; }
Public ReadOnly Property Settings As TemplateContentSettings

Property Value

Type Description

A TemplateContentSettings object that specifies settings of the ASP.NET application's templates content.


Built-in Templates are located in an XAF application's ASP.NET Web application project. The default template content is carried out to User Controls located in the DevExpress.ExpressApp.Web assembly, so the content is updated automatically when you upgrade to the new version of XAF. You can add XAF page content to the application project and make required modifications with it (see How to: Customize an ASP.NET Template). To use the modified content instead of the default, open the Global.asax.cs (Global.asax.vb) file and specify the path to your custom User Control as shown below.

protected void Session_Start(Object sender, EventArgs e) {
    // ...
    WebApplication.Instance.Settings.DefaultVerticalTemplateContentPath =

In this code, a path to the DefaultVertical template content is changed. More settings that specify paths to the content of other templates are available via the TemplateContentSettings object assigned to the Settings property. To simplify the creation of User Controls, XAF provides the project item templates. The table below lists the TemplateContentSettings object's properties and their corresponding project item templates.


Project Item Template


Deprecated Templates | Default Vertical Template Content

XAF ASP.NET Templates | Default Vertical Template Content


Deprecated Templates | Default Template Content


Deprecated Templates | Dialog Template Content

XAF ASP.NET Templates | Dialog Template Content


XAF ASP.NET Templates | Find Dialog Template Content


Deprecated Templates | Logon Template Content

XAF ASP.NET Templates | Logon Template Content


Deprecated Templates | Nested Frame Control

XAF ASP.NET Templates | Nested Frame Control

See Also