I'm trying to insert a Rectangle as a RadComboxItem using the following
XAML code:
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?
Thanks.
<
telerik:RadComboBox
Grid.Row
=
"1"
Grid.Column
=
"1"
Height
=
"25"
Margin
=
"5,0,0,0"
HorizontalContentAlignment
=
"Stretch"
VerticalContentAlignment
=
"Stretch"
>
<
telerik:RadComboBoxItem
>
<
Rectangle
Margin
=
"2"
HorizontalAlignment
=
"Stretch"
Height
=
"15"
>
<
Rectangle.Fill
>
<
LinearGradientBrush
EndPoint
=
"0.5,1"
StartPoint
=
"0.5,0"
>
<
LinearGradientBrush.RelativeTransform
>
<
CompositeTransform
CenterY
=
"0.5"
CenterX
=
"0.5"
Rotation
=
"90"
/>
</
LinearGradientBrush.RelativeTransform
>
<
GradientStop
Color
=
"Red"
/>
<
GradientStop
Color
=
"Blue"
Offset
=
"1"
/>
<
GradientStop
Color
=
"Lime"
Offset
=
"0.5"
/>
</
LinearGradientBrush
>
</
Rectangle.Fill
>
</
Rectangle
>
</
telerik:RadComboBoxItem
>
</
telerik:RadComboBox
>
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?
Thanks.