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

How to set a Silverlight4 ComboBox style to RadComboBox

1 Answer 73 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Saibal
Top achievements
Rank 1
Saibal asked on 16 Dec 2011, 05:04 PM
Hi,

Indeed Telerik RadComboBox is one of the best 3rd party tool we use. In fact it works much better that Microsoft's Silverlight4's own ComboBox.

I am facing an issue:

I need to set an existing ComboBox (Silverlight4) style to a RadComboBox. But that does not work.

say I have a defined stye "<Style x:Key="ComboBoxStyle1" TargetType="ComboBox">" and using that to my existing Silverlight ComboBox Control (<ComboBox Grid.Row="1" Grid.Column="2"  Name="cmbCompany" Style="{StaticResource ComboBoxStyle1}">).

But, Now want to use a Telerik RadComboBox for showing the products.  

Now, I have defined another Style for the RadComboBox
[<Style x:Key="ComboBoxStyleRadCombo" TargetType="telerik:RadComboBox">] with the same set of color specification as in the earlier style.

and using like :
(<telerik:RadComboBox Grid.Row="2" Grid.Column="1"  Name="cmbProducts" Style="{StaticResource ComboBoxStyleRadCombo}">) 

But it is working completely differently. Color schemes are going hey where.

Can anyone please help me in this regards.

1 Answer, 1 is accepted

Sort by
0
Dani
Telerik team
answered on 19 Dec 2011, 09:48 AM
Hello Saibal,

Default styles as well as the control templates for native MS ComboBox and Telerik RadComboBox are different. Therefore when trying to make one of them have the same look and feel as the other one, you will have to manually modify the style for the control.

When trying to customize RadComboBox to look as your customized ComboBox control, please take into consideration the fact that RadComboBox has a default Office Black theme, which is reflected by a ButtonChrome control inside the template of RadComboBox. You may need to generate and customize the button chrome as well. Also, remember to make your modifications both on the Editable and NonEditable ControlTemplates of RadComboBox.

I hope this helps.

Best wishes,
Dani
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Tags
ComboBox
Asked by
Saibal
Top achievements
Rank 1
Answers by
Dani
Telerik team
Share this question
or