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  阅读(811)  评论(2)    收藏  举报