The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.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.PreferredApplicationWindowTemplateType Property

Specifies the Template type for the application's main page.

Namespace: DevExpress.ExpressApp.Web

Assembly: DevExpress.ExpressApp.Web.v19.2.dll

Declaration

public static TemplateType PreferredApplicationWindowTemplateType { get; set; }
Public Shared Property PreferredApplicationWindowTemplateType As TemplateType

Property Value

Type Description
TemplateType

A TemplateType enumeration value that specifies the Template type for the application's main page. The default is TemplateType.Vertical.

Remarks

To use the Default Template for the main window instead of DefaultVertical, set the PreferredApplicationWindowTemplateType property to TemplateType.Horizontal in the ASP.NET application's Session_Start event handler (you can find this handler code in the Global.asax.cs (Global.asax.vb) file).

using DevExpress.ExpressApp.Web.Templates;
// ... 
protected void Session_Start(Object sender, EventArgs e) {
    WebApplication.SetInstance(Session, new MySolutionAspNetApplication());
    // ... 
    WebApplication.PreferredApplicationWindowTemplateType = TemplateType.Horizontal;
}
Note

The PreferredApplicationWindowTemplateType property should be initialized after the WebApplication.SetInstance method is called. Otherwise, the "Cannot change the ValueManager.ValueManagerType property after it's initialized" error may occur.

See Also