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

Background to Radcombobox

3 Answers 454 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Kumar
Top achievements
Rank 1
Kumar asked on 27 Sep 2010, 02:27 PM
Hi,

I am not getting background color changes by changing background property value.


Please helpme.

3 Answers, 1 is accepted

Sort by
0
Dani
Telerik team
answered on 30 Sep 2010, 12:53 PM
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
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>

Tags
ComboBox
Asked by
Kumar
Top achievements
Rank 1
Answers by
Dani
Telerik team
Martin
Top achievements
Rank 1
Veteran
Share this question
or