Using a Different Style for Telerik Buttons

2 posts, 0 answers
  1. mvbaffa
    mvbaffa avatar
    102 posts
    Member since:
    Dec 2006

    Posted 29 Dec 2010 Link to this post


    I have a WPF application with well defined Button style. I would like to use Telerik Button but I would like to use my own Style.

    My Style is in the Application Resource and applies to all standar WPF buttons, except for Telerik. By the way My TabDividers also have an Application Resources Style and I presume the same thing will happen with Telerik Tab.

    How Can I use my resource Styles it with Telerik controls.

    Thanks in advance
  2. Tina Stancheva
    Tina Stancheva avatar
    3299 posts

    Posted 30 Dec 2010 Link to this post

    Hi mvbaffa,

    For the Button and RadButton style, you can set the Style.BasedOn property when defining the RadButton style:
    <Style TargetType="telerik:RadButton" BasedOn="{StaticResource {x:Type Button}}"/>
    This way you will be able to reuse the Button style and still overwrite some of the settings. I attached a sample project illustrating this scenario.

    However, since the RadTabControl doesn't inherit from the TabControl, you will have to create a new style for it.

    Tina Stancheva
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for WPF
Back to Top