23
2016
02

Telerik UI for WinForms 应用全局主题

官方文档:

http://docs.telerik.com/devtools/winforms/themes/using-a-default-theme-for-the-entire-application

全局主题

In the form constructor set the static ThemeResolutionService.ApplicationThemeName property to a theme name:

将主题名称赋值给 静态属性 ThemeResolutionService.ApplicationThemeName  即可 

例如: ThemeResolutionService.ApplicationThemeName = "Office2007Black";

All your controls will use that specified theme which has precedence over the theme set locally to the control using ThemeName property.

局部主题

This property indicates how the theme will be set to the control. If it is set to true (the default value) the control will have the theme that is globally set (with the ApplicationThemeName property). If it is set to false, the theme, set with the ThemeName property will be respected. For example you can set the theme for the entire application except for one RadGridView control as follows:

 所有控件默认会使用全局主题定义的主题样式.

可以为某个控件添加例外, 使用单独的主题 

  • 例如:

  • ThemeResolutionService.ApplicationThemeName = "Office2010Blue";

  • radGridView1.ElementTree.EnableApplicationThemeName = false;

  • radGridView1.ThemeName = "Office2010Silver";





« 上一篇下一篇 »

豫ICP备13016324号

mdeveloper