WebApplicationStyleManager.EnableUpperCase Property
Specifies whether or not the upper case is used in labels and captions in the new web UI.
Namespace: DevExpress.ExpressApp.Web
Assembly: DevExpress.ExpressApp.Web.v24.2.dll
NuGet Package: DevExpress.ExpressApp.Web
Declaration
Property Value
Type | Description |
---|---|
Boolean | true, if the upper case is enabled in labels and captions; otherwise, false. |
Remarks
By default, in XAF ASP.NET Web Forms applications, the upper case is enabled in labels and captions. The following code snippet demonstrates how to disable it.
protected void Session_Start(Object sender, EventArgs e) {
//...
WebApplication.Instance.SwitchToNewStyle();
WebApplicationStyleManager.EnableUpperCase = false;
WebApplication.Instance.Setup();
WebApplication.Instance.Start();
}
This property has effect when used before the application main page is shown. You can access it in the Session_Start method located in the Global.asax file, after the WebApplication.SwitchToNewStyle method is called.
The result is demonstrated in the image below.
Alternatively, you can use the following properties to disable upper case for grid column, layout group and navigation group captions, individually.
- WebApplicationStyleManager.EnableGridColumnsUpperCase
- WebApplicationStyleManager.EnableGroupUpperCase
- WebApplicationStyleManager.EnableNavigationGroupsUpperCase