WebApplication.Settings Property
Specifies settings of the ASP.NET application’s Templates content.
Namespace: DevExpress.ExpressApp.Web
Assembly: DevExpress.ExpressApp.Web.v18.2.dll
Declaration
Property Value
Type | Description |
---|---|
TemplateContentSettings | A TemplateContentSettings object that specifies settings of the ASP.NET application’s templates content. |
Remarks
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 =
"MyDefaultVerticalTemplateContent.ascx";
WebApplication.Instance.Setup();
WebApplication.Instance.Start();
}
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.
Property | Project Item Template |
---|---|
XAF ASP.NET Classic UI Templates | Default Vertical Template Content XAF ASP.NET New UI Templates | Default Vertical Template Content | |
XAF ASP.NET Classic UI Templates | Default Template Content | |
XAF ASP.NET Classic UI Templates | Dialog Template Content XAF ASP.NET New UI Templates | Dialog Template Content | |
XAF ASP.NET New UI Templates | Find Dialog Template Content | |
XAF ASP.NET Classic UI Templates | Logon Template Content XAF ASP.NET New UI Templates | Logon Template Content | |
XAF ASP.NET Classic UI Templates | Nested Frame Control XAF ASP.NET New UI Templates | Nested Frame Control |