RadTreeListView Changing a theme

1 posts, 0 answers
  1. Test
    Test avatar
    1 posts
    Member since:
    Apr 2012

    Posted 24 Apr 2012 Link to this post

    Hello,

    how can I change a theme of a RadTreeListView? 
    I have tried by setting it in the XAML with telerik:StyleManager.Theme="Windows7"
    or in code behind StyleManager.SetTheme(radTreeListView, new Windows7Theme());
    but my theme does not changes. I get the default office black theme. However i can see the control theme changed in the XAML designer in VS but when I run the project in the browser I get office black.
    I have tried with  StyleManager.ApplicationTheme = new Windows7Theme(); but then I get an exception
    Error HRESULT E_FAIL has been returned from a call to a COM component.

    I am using Silverlight 5 and I have a Cosmopolitan theme set up in my application.
    I have referenced Telerik.Windows.Controls, Telerik.Windows.Controls.GridView, Telerik.Windows.Controls.Input, 
    Telerik.Windows.Controls.Navigation, Telerik.Windows.Data, Telerik.Windows.Themes.Windows7.
Back to Top