This is a migrated thread and some comments may be shown as answers.

How to Un-Bold the Selected Item

1 Answer 287 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Greg
Top achievements
Rank 1
Greg asked on 09 Dec 2014, 08:51 PM
Seemingly simple question... I have a RadComboBox that I want to display the selected item without the font being bold.

The template being used:

<UserControl.Resources>
  <DataTemplate x:Key="SelectionBoxTemplate">
    <TextBlock Text="{Binding Code}" FontWeight="Regular"/>
  </DataTemplate>
</UserControl.Resources>

The radcombobox:

<telerik:RadComboBox x:Name="RegionComboBox"
                     Grid.Column="2"
                     Margin="2"
                     ClearSelectionButtonContent="Clear"
                     ClearSelectionButtonVisibility="Visible"
                     DisplayMemberPath="Code"
                     ItemsSource="{Binding Regions}"
                     SelectedValue="{Binding Region,
                                             Mode=TwoWay}"
                     SelectedValuePath="Code"
                     SelectionBoxTemplate="{StaticResource SelectionBoxTemplate}"/>

I can change the color of the displayed item, but I cannot get the font weight to be regular. It is always bold.

Thanks.

1 Answer, 1 is accepted

Sort by
0
Accepted
Masha
Telerik team
answered on 10 Dec 2014, 12:31 PM
Hi Greg,

I guess you are using Windows8 theme, where the default FontFamily of RadComboBox is Segoe UI Semibold. This FontFamily  doesn't have Normal FontWeight that is why you cannot change it. I suggest you change the FontFamily of RadComboBox or the TextBlock of SelectionBoxTemplate to Segoe UI which is the same font but with Normal FontWeight.

Hope this helps.

Regards,
Masha
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
ComboBox
Asked by
Greg
Top achievements
Rank 1
Answers by
Masha
Telerik team
Share this question
or