3 Answers, 1 is accepted
0
Hi Kumar,
Thank you for your inquiry.
The background color in Normal state as well other states for RadComboBox come from the ButtonChrome in its template. The ButtonChrome in its turn is styled by the theme which has been applied to the control.
If you wish to change the background of the ComboBox, you need to generate and edit its Style in Blend.
You can:
- Remove the chrome and place and style another element in its place(a Border, for example)
;
- Apply a Style to the ButtonChrome and customize it to be different than the default one; This one actually means generating and editing the ButtonChrome style in Blend;
- Apply a different theme to the control, because ButtonChromes are styled differently for every Telerik theme.
I hope this information helps. If need further assistance, please get back to us.
Greetings,
Dani
the Telerik team
Thank you for your inquiry.
The background color in Normal state as well other states for RadComboBox come from the ButtonChrome in its template. The ButtonChrome in its turn is styled by the theme which has been applied to the control.
If you wish to change the background of the ComboBox, you need to generate and edit its Style in Blend.
You can:
- Remove the chrome and place and style another element in its place(a Border, for example)
;
- Apply a Style to the ButtonChrome and customize it to be different than the default one; This one actually means generating and editing the ButtonChrome style in Blend;
- Apply a different theme to the control, because ButtonChromes are styled differently for every Telerik theme.
I hope this information helps. If need further assistance, please get back to us.
Greetings,
Dani
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
0
Martin
Top achievements
Rank 1
Veteran
answered on 12 May 2020, 01:28 PM
Isn't there an easier way to do this? And could you provide an example of how to change the background color with the example that you gave?
0
Martin
Top achievements
Rank 1
Veteran
answered on 12 May 2020, 01:45 PM
I found an easier solution to the problem and it was doing like this:
<telerik:RadComboBox.TextBoxStyle>
<Style TargetType="TextBox">
<Setter Property="Background" Value="#EFF6FC" />
</Style>
</telerik:RadComboBox.TextBoxStyle>