SelectionBoxItem Style

2 posts, 0 answers
  1. Marco
    Marco avatar
    5 posts
    Member since:
    Jul 2011

    Posted 21 Jul 2011 Link to this post

    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!
  2. Dani
    Admin
    Dani avatar
    848 posts

    Posted 22 Jul 2011 Link to this post

    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!

  3. UI for WPF is Visual Studio 2017 Ready
Back to Top