1. Samuel
    Samuel avatar
    8 posts
    Member since:
    Aug 2010

    Posted 08 Nov 2010 Link to this post

    I'm trying to insert a Rectangle as a RadComboxItem using the following XAML code:

    <telerik:RadComboBox Grid.Row="1" Grid.Column="1" Height="25" Margin="5,0,0,0" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch">
            <Rectangle Margin="2" HorizontalAlignment="Stretch" Height="15">
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                            <CompositeTransform CenterY="0.5" CenterX="0.5" Rotation="90"/>
                        <GradientStop Color="Red"/>
                        <GradientStop Color="Blue" Offset="1"/>
                        <GradientStop Color="Lime" Offset="0.5"/>

    The Rectangle appears normally when I click to open the RadComboBox (in list), but when selected (the list closes) it disappears from the closed RadComboBox.

    How can I solve this?

  2. Konstantina
    Konstantina avatar
    2332 posts

    Posted 10 Nov 2010 Link to this post

    Hello Samuel,

    Thank you for contacting us.

    You can try setting the SelectionBoxTemplate. You can find more information in this help article: http://www.telerik.com/help/silverlight/radcombobox-populating-with-data-selectionbox.html

    Hope this information helps. Please let us know if you have any other questions.

    All the best,
    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
Back to Top