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

SelectionBoxItem Style

1 Answer 207 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Marco
Top achievements
Rank 1
Marco asked on 21 Jul 2011, 06:04 PM
Hello,
I've done a new template and style to a RadComboBox, but now I can't find where to style the SelectionBox(Item).
I don't want the behavior that is generated by the office theme.

Where can i edit those properties?

Thank you!

1 Answer, 1 is accepted

Sort by
0
Dani
Telerik team
answered on 22 Jul 2011, 02:42 PM
Hi Marco,

The SelectionBoxTemplate is a ContentTemplate, not a Style. So if you wanted to present data in the selection box, you would basically have something like this:

<DataTemplate x:Key="SelectionBoxTemplate">
      <TextBlock Text="{Binding Name}" Foreground="Black" FontWeight="Bold"/>
  </DataTemplate>

The SelectionBoxTemplate is not predefined, you have to create it yourself and include the needed pieces of data. Please, check this online help article on this topic.

If you wish to change appearance rather data, however, you need to customize the appearance of the RadComboBox control.  

I hope this helps.

All the best,
Dani
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

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