I add RadMenuItem inside RadComboBox as below code & screenshot, however, there are 2 borders in the dropdownitem when i selected( please refer to the screenshot-> Red Category), and i can't select the dropdownitem when i click the text in the inner border. It only can be selected by click the outer border. please help to advise. thanks.
<
telerik:RadComboBox
ItemsSource
=
"{Binding Categories}"
SelectedItem
=
"{Binding Occurrence.Appointment.Category, Mode=TwoWay}"
Width
=
"136"
MinHeight
=
"22"
BorderThickness
=
"0"
HorizontalContentAlignment
=
"Left"
DisplayMemberPath
=
"CategoryName"
>
<
telerik:RadComboBox.ItemTemplate
>
<
DataTemplate
>
<
telerik:RadMenuItem
>
<
telerik:RadMenuItem.Header
>
<
TextBlock
Text
=
"{Binding CategoryName}"
></
TextBlock
>
</
telerik:RadMenuItem.Header
>
<
telerik:RadMenuItem.Icon
>
<
Rectangle
Width
=
"14"
Height
=
"14"
HorizontalAlignment
=
"Left"
VerticalAlignment
=
"Center"
Fill
=
"{Binding CategoryBrush}"
/>
</
telerik:RadMenuItem.Icon
>
</
telerik:RadMenuItem
>
</
DataTemplate
>
</
telerik:RadComboBox.ItemTemplate
>
</
telerik:RadComboBox
>