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

RadListBox item style issue with Windows8/Metro theme (FontWeight)

2 Answers 80 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
Valeriu
Top achievements
Rank 1
Valeriu asked on 11 Dec 2012, 09:52 AM
With a recent update to Q3 2012, all of our RadListBox started to show the content with FontWeight="Bold", which was not the case with previous versions. As a result, many of our screens became plain ugly.

Was it a deliberate decision to make this theme change or is it a bug?

Even more, if the data template of a RadListBoxItem has a TextBlock with FontWeight set explicitly, it is ignored and the Bold style is used. 

Code example:
<telerik:RadListBox ItemsSource="{Binding TestItems}">
    <telerik:RadListBox.ItemTemplate>
        <DataTemplate>
            <TextBlock Text="{Binding }"
                       FontWeight="Normal"
                       FontSize="18" />
        </DataTemplate>
    </telerik:RadListBox.ItemTemplate>
</telerik:RadListBox>

For this template, items are still shown with Bold.

I've checked and this behavior is specific for Windows8 & Metro themes, Windows7 still displaying items correctly.

Any workarounds to get our screens back to normal and looking good?

Thanks

2 Answers, 1 is accepted

Sort by
0
Valeriu
Top achievements
Rank 1
answered on 11 Dec 2012, 10:24 AM
I've found the style definition for RadListBox, it sets the FontFamily to "Segoe UI Semibold".

I've overridden that property with "Segoe UI" and my UI is back to the state where it looks the way it was designed. 

From my point of view Telerik shouldn't force this decision on users as it's not trivial to figure it out...
0
Masha
Telerik team
answered on 14 Dec 2012, 08:50 AM
Hello Valeriu,

You are right about this. We have already discussed this and will back FontFamily to Segoe UI for next internal build.

Regards,
Maria
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
ListBox
Asked by
Valeriu
Top achievements
Rank 1
Answers by
Valeriu
Top achievements
Rank 1
Masha
Telerik team
Share this question
or