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

Editing the lookfeel of the ComboBox

1 Answer 70 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 29 Apr 2011, 12:33 AM
Hello,
  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.MergedDictionaries>
        <ResourceDictionary Source="/ComboBoxStyling;component/Theme/ComboBox.Default.xaml"/>
        <ResourceDictionary Source="/ComboBoxStyling;component/Theme/ComboBox.Office_Black.xaml"/>
    </ResourceDictionary.MergedDictionaries>

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"/>
    </LinearGradientBrush>

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.

1 Answer, 1 is accepted

Sort by
0
Pana
Telerik team
answered on 04 May 2011, 07:18 AM
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,
Pana
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
Tags
ComboBox
Asked by
Robert
Top achievements
Rank 1
Answers by
Pana
Telerik team
Share this question
or