开发者

Change Telerik Theme

开发者 https://www.devze.com 2022-12-19 02:58 出处:网络
How开发者_如何转开发 can I change the default telerik theme for a RadTreeView. I have multiple elements and the RadTreeView doesn\'t follow the color style of the rest of the elements. Say I want to c

How开发者_如何转开发 can I change the default telerik theme for a RadTreeView. I have multiple elements and the RadTreeView doesn't follow the color style of the rest of the elements. Say I want to change it to Vista.


In WPF Black theme is default. If you want to change it, first have DLL reference of theme you want to apply. Ex. Telerik.Windows.Themes.Windows7.dll found in telerik install folder.

Use following code snippet for your app.xaml.cs

protected override void OnStartup(StartupEventArgs e)
{
    base.OnStartup(e);
    StyleManager.ApplicationTheme = new Windows7Theme();
}


To change the theme of a Telerik component, just set its Skin property:

tree_view_control.Skin = "Vista";

Is there something more here that I am missing?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号