Changing theme dynamically

2 posts, 0 answers
  1. Jeffrey Lewis
    Jeffrey Lewis avatar
    12 posts
    Member since:
    Dec 2009

    Posted 12 Jan 2010 Link to this post


    I'm trying to change the theme of a RadWindow from C# but couldn't get it to work. This is my code:

    ... />

    C# (Button click event):
    StyleManager.SetTheme(this.winMainWindow, new VistaTheme());

    Note that the RadWindow is the root element, and my code behind class is inheriting from RadWindow as follow:

    public partial class MainWindow : RadWindow

  2. Miroslav Nedyalkov
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 13 Jan 2010 Link to this post

    Hi Jeffrey,

     I'm not sure that I can understand what you are doing. Could you please send us a sample project that reproduces the problem? This would be of great help.

    Kind regards,
    Miroslav Nedyalkov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top