ThemeResolution Service Usage

2 posts, 0 answers
  1. Alcatraz
    Alcatraz avatar
    15 posts
    Member since:
    Mar 2010

    Posted 16 Apr 2010 Link to this post

    Hi,

    It would be really great if you could share me a sample project in which the Themeresolution service is implemented which is going to use multiple theme files.

    i.e  I have seperate theme files created for each of controls like textbox, button, grid etc.  How do i set them to a component such that it can be used across the application?

    Thanks
    Kris
  2. Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 22 Apr 2010 Link to this post

    Hi KrisYs,

    Thank you for the question.

    TheThemeResolutionService.ApplicationThemeName sets the ThemeName of all controls to one and the same value. It does not set ThemeName per control type basis.

    When you create custom themes for different controls, you should load these themes in your applications by following the instruction provided in this article. When you later set the ThemeResolutionService.ApplicationThemeName to the custom ThemeName value, all controls that have custom themes will be styled accordingly. If there are other controls which do not have custom themes defined, they will be styled in the ControlDefault theme.

    I hope that this information is helpful. In case there are any specific questions about our theming mechanism, feel free to contact us back.

    All the best,
    Nikolay
    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. UI for WinForms is Visual Studio 2017 Ready
Back to Top