This is a migrated thread and some comments may be shown as answers.

Using a Different Style for Telerik Buttons

1 Answer 236 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
mvbaffa
Top achievements
Rank 1
mvbaffa asked on 29 Dec 2010, 03:00 PM
Hi,

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

1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 30 Dec 2010, 05:03 PM
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.

Regards,
Tina Stancheva
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
Tags
General Discussions
Asked by
mvbaffa
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Share this question
or