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

Simply define the DropDownButtonStyle

2 Answers 78 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
Richard Newson
Top achievements
Rank 2
Richard Newson asked on 27 Jun 2013, 12:59 AM
There are a number of examples of creating a style for the whole RadTabControl and the DropDownMenu but none of them with DropDownButtonStyle. All I want to do at this time is change the style of the DropDownButton.

Unfortunately I do not have Blend available to me at this time and the VS "Extract Value to Resource" functionality is crashing with a "Catastrophic failure". So I just need a piece of example code to show me how to redefine the Style for this item and then I can build on it from there.

Can you please help?

2 Answers, 1 is accepted

Sort by
0
Pavel R. Pavlov
Telerik team
answered on 01 Jul 2013, 04:52 PM
Hello Richard,

As far as I understand you need to extract the default style of the RadTabControl but you miss the style targeting the RadDropDownButton. Please note that the addon for VS 2012 and Blend both extract the Styles that you already have locally on your PC. You can also extract and customize them manually. Have in mind that you can find the Styles for all RadControls in the folder where you installed our dlls. Basically you need to navigate to:

[Target Folder]\Themes.Implicit\[Choose A Theme]\Themes
In this folder you will be able to find all the Dictionaries that hold the Styles for our controls.

Furthermore, in order to get the Style targeting the RadTabControl you can open the Telerik.Windows.Controls.Navigation.xaml file and try to find the "RadTabControlStyle".

Please try this approach out and let me know if you have any other questions.

Regards,
Pavel R. Pavlov
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Richard Newson
Top achievements
Rank 2
answered on 01 Jul 2013, 10:09 PM
Thanks.
So, bottom line is no "simple" way. I extracted the entire TabControl.xaml and then just modified the button piece I was interested in.
Which was relatively simple and it does give me options to tweak the other pieces of the control when needed.

Thanks again.
Tags
TabControl
Asked by
Richard Newson
Top achievements
Rank 2
Answers by
Pavel R. Pavlov
Telerik team
Richard Newson
Top achievements
Rank 2
Share this question
or