How can i set different theme only one component?

3 posts, 1 answers
  1. Tanser
    Tanser avatar
    10 posts
    Member since:
    Nov 2013

    Posted 05 May 2014 Link to this post


    Users can change theme on runtime on our project. But i want to RadTitleBard theme doesn't change anytime. Is this possible?

    I use the code that below to change application theme.

    ThemeResolutionService.ApplicationThemeName = (sender as RadioButton).Tag.ToString();

    and after i set the code that below. But TitleBar theme doesn't change to "TelerikMetroBlue"

    radTitleBar1.ThemeName = "TelerikMetroBlue";

  2. Answer
    Stefan avatar
    2891 posts

    Posted 07 May 2014 Link to this post

    Hello Tanser,

    Thank you for writing.

    To prevent a control from changing its theme you can set the following property:

    radTitleBar1.ElementTree.EnableApplicationThemeName = false;

    I hope this helps.

    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Tanser
    Tanser avatar
    10 posts
    Member since:
    Nov 2013

    Posted 07 May 2014 in reply to Stefan Link to this post

    Thank you. This is working.
Back to Top