?
How can i change default font in web application
Answers
Hello Christy,
With v16.2+, you may find the new capabilities of our DevExpress ASP.NET controls for controlling the main theme color and font helpful:
DevExpress.Web > ASPxWebControl > GlobalThemeFont
DevExpress.Web > ASPxWebControl > GlobalThemeBaseColor
You can change fonts by using custom CSS. For example, if you add the following code into the Default.aspx file, the font size will be changed for all items that do not have another !important style:
ASPx<head runat="server">
<style type="text/css">
*
{
font-size: 16px !important;
}
</style>
</head>
In addition, you can redefine the default styles in a custom theme - see How to: Use Custom Themes in ASP.NET Applications.
To learn how to change fonts in individual controls, refer to the Changing the font size for particular ListView, Detail View, Custom Detail View and Popup's of ASP.NET web application ticket.
Please let me know if you need any further assistance.
A custom CSS can be registered in an XAF application just like in any other ASP.NET application. For example, you can add a <style> block to the Default.aspx file.
To change a style from a DevExpress theme, either override it in your CSS with the !important keyword or customize the theme as described in the How to: Use Custom Themes in ASP.NET Applications topic.