Simply define the DropDownButtonStyle

3 posts, 0 answers
  1. Richard Newson
    Richard Newson avatar
    17 posts
    Member since:
    Aug 2009

    Posted 26 Jun 2013 Link to this post

    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. Pavel R. Pavlov
    Pavel R. Pavlov avatar
    1165 posts

    Posted 01 Jul 2013 Link to this post

    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.

    Pavel R. Pavlov
    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 >>
  3. DevCraft R3 2016 release webinar banner
  4. Richard Newson
    Richard Newson avatar
    17 posts
    Member since:
    Aug 2009

    Posted 01 Jul 2013 Link to this post

    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.
Back to Top