XAF.web.NewUI:如何自定义主题

一.使用主题制作工具导出主题:

修改主题生成器工具导出主题。改完后导出 App_Themes 文件夹例如更改 ASPxGridView 面板Pager面板背景保存更改

  1. 使用ThemeBuilder 创建这个主题的程序集(dll文件). 这个不会看这里. Generating a Custom Theme Assembly .

  2. 在你的xaf web项目中引用这个程序集。

  3. 修改web.config.devExpress 节,设置 theme 属性 值为 customThemeAssemblies. 如下所示:

<devExpress>
  <themes enableThemesAssembly="true" styleSheetTheme="" theme="XafTheme" customThemeAssemblies="ThemeAssembly1" />
  <!-- ... -->
</devExpress>

运行并查看效果:



 

posted @ 2017-03-17 10:53  code first life  阅读(784)  评论(2编辑  收藏  举报