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

3 posts, 0 answers
  1. Valeriu
    Valeriu avatar
    21 posts
    Member since:
    Dec 2010

    Posted 11 Dec 2012 Link to this post

    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. Valeriu
    Valeriu avatar
    21 posts
    Member since:
    Dec 2010

    Posted 11 Dec 2012 Link to this post

    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...
  3. UI for WPF is Visual Studio 2017 Ready
  4. Masha
    Admin
    Masha avatar
    355 posts

    Posted 14 Dec 2012 Link to this post

    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.

Back to Top