Skip Navigation LinksHome / Community & Support / Code Library / WPF > General and Integration Projects > Global dynamic theme application to all controls

Not answered Global dynamic theme application to all controls

Feed from this thread
  • Ron Barone avatar

    Posted on Feb 23, 2010 (permalink)

    Requirements

    RadControls version
    Q3 2009 (Trial)

    .NET version
    3.5

    Visual Studio version
    2008

    programming language
    C#

    browser support

    all browsers supported by RadControls


    PROJECT DESCRIPTION

    While doing some pre-sales integration research we needed a simple way to integrate Telerik themes on all standard windows controls (TextBox, Button etc…).

     

    In this example I show how to set the theme by an application resource theme object.  All objects style setters that reference this object as a DynamicResource will automatically receive change notification. Using the dynamic resource AND explicitly setting the standard Windows and Telerik controls the theme change is immediately applied.

     

    1) Open the project in Visual Studio and run.

    2) To show how the functionality works across threads click the open new window button.

    3) Dropdown and select a new theme

     


    Attached files

    Reply

  • Boyan Boyan admin's avatar

    Posted on Feb 24, 2010 (permalink)

    Hello Ron Barone,

    We will include your project into our code library.

    Thank you very much for your effort. We have given you Telerik points for your involvement.


    Best wishes,
    Boyan
    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.

    Reply

  • Ron Barone avatar

    Posted on Feb 24, 2010 (permalink)

    Thanks,

    Attached is an updated XML file that includes all control references...  It will make it easier on anyone who uses this to not have to go through it again :).




    Attached files

    Reply

  • David avatar

    Posted on Aug 2, 2011 (permalink)

    Hi,

    Just a quick word of caution concerning the updated XML that Ron posted on Feb 24, 2010 that includes references to all standard WPF controls (because I found out the hard way): Telerik do not currently support theming all standard WPF controls. This results in unexpected behavior when theming non-supported WPF controls, for example they may appear blank.

    The most recent list of WPF controls that Telerik supports I can find is here:

    http://www.telerik.com/community/forums/wpf/general-discussions/wpf-theme.aspx

    Kind regards,
    Dave.

    Reply

  • Ammaar avatar

    Posted on Jan 24, 2013 (permalink)

    Hi,

    I'd like to do the opposite of what you have done here, i.e. I'd like to theme all Telerik controls to use the standard Windows theme. For the moment I'd just like to do this for ScrollBars as I would like the OS default theme to be used for all scrollbars across the application to have a consistent look and feel. Is there any way this can be done? I've already posted a separate question on this a few days ago, but had no replies yet (http://www.telerik.com/community/forums/wpf/general-discussions/global-override-for-scrollbar-style-on-radcontrols.aspx)

    Reply

  • Tina Stancheva Tina Stancheva admin's avatar

    Posted on Jan 29, 2013 (permalink)

    Hi Ammaar,

    We posted a reply in the forum thread you mentioned. Please let us know if we can further assist you.

    Kind regards,
    Tina Stancheva
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Code Library / WPF > General and Integration Projects > Global dynamic theme application to all controls