Completed
Last Updated: 22 Jul 2019 13:17 by ADMIN
Release R3 2019 (LIB 2019.2.729)
GLENN
Created on: 10 Jul 2019 06:51
Category: RibbonBar
Type: Bug Report
1
RadRibbonBar: BackstageView bounds are not correct when the form is restored from maximized state
Create a RadRibbonForm.
Set the ApplicationMenuStyle of RibbonBar to BackstageView
Run the form and maximize it.
Open BackstageView and then click the Restore button of the form.
You will see that BackstageView bounds are not correct(see attached images).
1 comment
ADMIN
Todor Vyagov
Posted on: 10 Jul 2019 07:29
Hello,

As a workaround I can suggest you two possible options:
1. Programmatically resize the form to update the layout of RadRibbonBarBackstageView.
2. Use reflection to call the method that updates the bounds of RadRibbonBarBackstageView.
private FormWindowState lastWindowState;
  
public Form1()
{
    InitializeComponent();
    this.lastWindowState = this.WindowState;
}
          
protected override void OnSizeChanged(EventArgs e)
{
    base.OnSizeChanged(e);
  
    if (this.lastWindowState == FormWindowState.Maximized)
    {
        this.lastWindowState = this.WindowState;
  
        // Option 1. Programmatically resize the form
        this.Width += 1;
        this.Width -= 1;
  
        // Option 2. Use reflection to call the method that updates the RadRibbonBarBackstageView bounds
        // MethodInfo sizeChangedMethod = this.radRibbonBarBackstageView1.GetType().GetMethod("parentControl_SizeChanged", BindingFlags.NonPublic | BindingFlags.Instance);
        // sizeChangedMethod.Invoke(this.radRibbonBarBackstageView1, new object[] { this, EventArgs.Empty });
    }
  
    this.lastWindowState = this.WindowState;
}

Regards,
Todor Vyagov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.