Editing the lookfeel of the ComboBox

2 posts, 0 answers
  1. Robert
    Robert avatar
    5 posts
    Member since:
    Apr 2011

    Posted 28 Apr 2011 Link to this post

      I've been styling a project and have encountered a problem.  I am trying to style the MouseOver and the ExpanderButtonPressed_Background coloring for a RadComboBox.  I've changed the color in the Theme and it seems like the RadComboBox isn't calling the template correctly, but its not throwing an error and will load properly with the wrong backgrounds.

    I've called the template:
    <telerik:RadComboBox x:Name="comboBox" VerticalAlignment="Top" Margin="234,66,286,0" Template="{StaticResource NonEditableComboBox}">

    It is included in the resource dictioinary:
            <ResourceDictionary Source="/ComboBoxStyling;component/Theme/ComboBox.Default.xaml"/>
            <ResourceDictionary Source="/ComboBoxStyling;component/Theme/ComboBox.Office_Black.xaml"/>

    and I've changed the ExpanedButtonPressed_Background to a blue gradient:
        <LinearGradientBrush x:Key="ExpanderButtonPressed_Background" EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="#FFDCEBFC" Offset="0"/>
            <GradientStop Color="#FFC1DBFC" Offset="1"/>
            <GradientStop Color="#FFCEE2FC" Offset="0.5"/>

    Any help would be appreciated.  I'm relatively new to this so if the information is not sufficient let me know and I'll give the necessary information.
  2. Pana
    Pana avatar
    748 posts

    Posted 04 May 2011 Link to this post

    Hello Robert,

    I have wired a RadComboBox styles with its ButtonChrome styles in a sample project. It is pretty much the way you have described only it works. I do not know what may be the problem at your side as the approach you describe is correct. I hope the attached project will help you solve your problem.

    All the best,
    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
Back to Top