Completed
Last Updated: 21 Oct 2015 12:30 by ADMIN
ADMIN
Dess | Tech Support Engineer, Principal
Created on: 07 Nov 2014 07:11
Category: RibbonBar
Type: Bug Report
1
FIX. RadRibbonForm - RadRibbonBarGroup.Text is cut off when the ribbon is initially collapsed with Offiice2013Dark theme
Please refer to the attached gif file.

Workaround: adjust manually the RadRibbonBarGroup.Margin when the expanded state is changed:

public Form1()
{
    InitializeComponent();
    this.radRibbonBar1.ExpandedStateChanged += radRibbonBar1_ExpandedStateChanged;
    radRibbonBar1.Expanded = false;
}

private void radRibbonBar1_ExpandedStateChanged(object sender, EventArgs e)
{
    if (this.radRibbonBar1.Expanded)
    {
        AdjustMargin(0);
    }
    else
    {
        AdjustMargin(-10);
    }
}

private void AdjustMargin(int top)
{
    foreach (RibbonTab tab in this.radRibbonBar1.CommandTabs)
    {
        foreach (RadRibbonBarGroup group in tab.Items)
        {
            group.Margin = new Padding(0, top, 0, 0);
        }
    }
}
0 comments