How to Change Theme at Runtime Programatically?

6 posts, 0 answers
  1. Chintan Shah
    Chintan Shah avatar
    9 posts
    Member since:
    Feb 2010

    Posted 11 Feb 2010 Link to this post

    I am Developing application in WPF and want to provide user with option of setting theme explicitly using combobox. but i couldn't find anything on net so please can anyone help me achieve this. and is it possible to get how many themes are installed so that can be bind to any data controls.

  2. Bobi
    Bobi avatar
    513 posts

    Posted 15 Feb 2010 Link to this post

    Hi Chintan Shah,

    Here you can find more information about telerik themes:

    You can also take a look at our online QSF where the themes are changed dynamically using combo box.

    Kind regards,
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. Vikash
    Vikash avatar
    12 posts
    Member since:
    Apr 2012

    Posted 24 May 2012 Link to this post

    Hi Telerik Team,

    Can you provide me sample code?
  4. Zlatko
    Zlatko avatar
    30 posts
    Member since:
    Sep 2013

    Posted 31 Jul 2018 in reply to Vikash Link to this post

    Are you still waiting for sample code?

    Yes, you will wait endless time.

  5. Martin Ivanov
    Martin Ivanov avatar
    2419 posts

    Posted 01 Aug 2018 Link to this post


    For anyone that hits this forum searching for information how to change theme at runtime, here is an help article showing how to do it using implicit styles. Additionally, you can download the source code of the UI for WPF demos and see how the theme changing mechanism is implemented there.

    Note that if you use StyleManager you can switch themes at runtime using the same approach as in the previously linked article, but instead of merging resource dictionaries, you can just set them ApplicationTheme static property of StyleManager. For example:
    StyleManager.ApplicationTheme = new GreenTheme();

    I hope this will help someone.

    Martin Ivanov
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
  6. Zlatko
    Zlatko avatar
    30 posts
    Member since:
    Sep 2013

    Posted 25 Sep 2019 in reply to Martin Ivanov Link to this post

    Try to install demo
Back to Top