Telerik Theme at design time

2 posts, 0 answers
  1. Konrad Sikorski
    Konrad Sikorski avatar
    23 posts
    Member since:
    Jul 2010

    Posted 01 May 2012 Link to this post


    How can I apply any of built in application theme (for example Windows7) to my application to see it on design time for example in blend.

    Now I am using this:

    StyleManager.ApplicationTheme = new Windows7Theme();

    And it is working on run time but of course not in designer.

  2. Vanya Pavlova
    Vanya Pavlova avatar
    2019 posts

    Posted 02 May 2012 Link to this post

    Hello Konrad,

    The application wide theme setting is evaluated at runtime. In WPF if you want to have design-time support for a particular theme you should set it in XAML at an element level to achieve your goal.  In Silverlight is possible to define the application theme in XAML, however in WPF is not. By that reason I recommend you to use the approach proposed above. 

    Vanya Pavlova
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top