Change Telerik Theme
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?
精彩评论