RadComboBox Background not set

5 posts, 0 answers
  1. JJ Loubser
    JJ Loubser avatar
    42 posts
    Member since:
    Jul 2009

    Posted 25 May 2011 Link to this post

    here is my autocomplete radcomobox:

                                               Text="{Binding Model.NearestTown, Mode=TwoWay}"
                                                                    Tag="{Binding Model.PostalCodeID, Mode=TwoWay}"
                                                                    ItemsSource="{Binding Model.TownList, Mode=TwoWay}"
                                                                    Width="250" Height="30"




    its works fine, but my background is not set from my styles:

    <Style TargetType="telerik:RadComboBox"
            <Setter Property="Template" Value="{StaticResource NonEditableComboBox}" />
            <Setter Property="EditableTemplate" Value="{StaticResource EditableComboBox}" />
            <Setter Property="NonEditableTemplate" Value="{StaticResource NonEditableComboBox}" />
            <Setter Property="HorizontalContentAlignment" Value="Stretch" />
            <Setter Property="VerticalContentAlignment" Value="Center" />
            <Setter Property="MinHeight" Value="22" />
            <Setter Property="Padding" Value="5 0" />
            <Setter Property="Foreground" Value="{StaticResource PickerForeground_Normal}" />
            <Setter Property="Background">
                    <SolidColorBrush Color="{StaticResource MainColor}"/>
            <Setter Property="BorderBrush" Value="{StaticResource ControlOuterBorder_Normal}" />
            <Setter Property="BorderThickness" Value="1" />
            <Setter Property="UseLayoutRounding" Value="True" />
            <Setter Property="animation:AnimationManager.AnimationSelector">
                        <animation:AnimationGroup AnimationName="Expand">
                            <animation:SlideAnimation Direction="In" SlideMode="Top" TargetElementName="PopupRoot" />
                        <animation:AnimationGroup AnimationName="Collapse">
                            <animation:SlideAnimation Direction="Out" SlideMode="Top" TargetElementName="PopupRoot" />


    I did try:




    not working


    there is a 

    <ControlTemplate x:Key="EditableComboBox" TargetType="telerik:RadComboBox">

    <ControlTemplate x:Key="NonEditableComboBox" TargetType="telerik:RadComboBox">

    try to look in the templates where I could change the background, did not found any place to where.

    Did I miss something?
  2. De
    De avatar
    4 posts
    Member since:
    Feb 2011

    Posted 26 May 2011 Link to this post

    To Telerik Reps, 
    Can you provide some examples as how to skin Silverlight RadComboBox control? Thanks.
  3. JJ Loubser
    JJ Loubser avatar
    42 posts
    Member since:
    Jul 2009

    Posted 27 May 2011 Link to this post

    check in the C:\Program Files\Telerik\RadControls for Silverlight Q1 2011 SP1\Themes\Summer\Themes\Summer\*.xaml for some examples...

    for I just need the correct place to set the background for a RadCombox... where?
  4. Pana
    Pana avatar
    748 posts

    Posted 31 May 2011 Link to this post


    I am attaching the ComboBox.xaml file applied in a project. In the NonEditable RadComboBox template there is a ButtonChrome control that does not have its Background property TemplateBound by default. If you do bind it you can use the Background property on both editable and non editable combo.

    It is a little frustrating but the Background of editable combo is white while that on a non editable is grayscale so we can not have the backgrounds in both the templates TemplateBound to the RadComboBox's Background.

    Kind regards,
    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
  5. JJ Loubser
    JJ Loubser avatar
    42 posts
    Member since:
    Jul 2009

    Posted 01 Jun 2011 Link to this post

    thanks working
Back to Top