WebApplication.PreferredApplicationWindowTemplateType Property
Specifies the Template type for the application’s main page.
Namespace: DevExpress.ExpressApp.Web
Assembly: DevExpress.ExpressApp.Web.v24.2.dll
NuGet Package: DevExpress.ExpressApp.Web
#Declaration
public static TemplateType PreferredApplicationWindowTemplateType { get; set; }
#Property Value
Type | Description |
---|---|
Template |
A Template |
Available values:
Name | Description |
---|---|
Horizontal | A main window with horizontal navigation template. |
Vertical | A main window with vertical navigation template. |
Logon | A logon window template. |
Dialog | A dialog window template. |
Find |
A search dialog window template. |
Nested |
A nested frame control template. |
#Remarks
To use the Default Template for the main window instead of DefaultVertical, set the PreferredApplicationWindowTemplateType property to TemplateType.Horizontal in the ASP.NET Web Forms 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 Preferred