Unplanned
Last Updated: 25 May 2023 08:13 by ADMIN
Alison
Created on: 25 May 2023 08:03
Category: RibbonBar
Type: Bug Report
0
RadRibbonBar: RibbonBarGroup text disappears when switching between themes if starting from the Office2010Blue theme

The caption text of the RibbonBarGroups disappears when switching themes runtime. The important part is that this behavior is observable when switching from the Office2010Blue theme to other themes. In this specific theme, the FillPrimitive holding the TextPrimitive (caption text) has the PositionOffset property set to 0,-1. This minus one pixel is messing up the layout during theme change.

What can be done as a workaround is to reset this property for every group. When the Office2010Blue theme is applied run this code:

private void radButton1_Click(object sender, EventArgs e)
{
    Office2010BlueTheme theme = new Office2010BlueTheme();
    ThemeResolutionService.ApplicationThemeName = "Office2010Blue";
    foreach (var item in this.ribbonTab1.Items)
    {
        if (item is RadRibbonBarGroup)
        {
            var group = item as RadRibbonBarGroup;
            group.Children[1].Children[0].PositionOffset = new SizeF(0, 0);
        }
    }
}

 

1 comment
ADMIN
Dinko | Tech Support Engineer
Posted on: 25 May 2023 08:13

Hello Alison,

Thank you for reporting this. We will consider fixing this in one of our next upcoming releases.

Regards,
Dinko | Tech Support Engineer
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.