When the active OS theme is Windows 7 Basic, the Ribbon displays blank when restoring a minimized window programmatically.
Here is the code snippet. Form2 is just another form with UltraToolbarsManager.
public partial class Form1 : Form { Form2 frm = new Form2(); public Form1() { InitializeComponent(); }
private void Form1_Load(object sender, EventArgs e) { Infragistics.Win.AppStyling.StyleManager.Load(Application.StartupPath + @"..\..\..\Office2007Black.isl"); this.appStylistRuntime1.LoadFromStyleManager(); }
private void ultraToolbarsManager1_ToolClick(object sender, Infragistics.Win.UltraWinToolbars.ToolClickEventArgs e) { switch(e.Tool.Key) { case "ButtonTool1": if (frm == null || frm.IsDisposed) frm = new Form2();
frm.Show(); break; default: frm.WindowState = FormWindowState.Normal; break; } } }
IG Version: 14.1.20141.2035
Aside from changing the OS theme to Classic or Aero, is there some other workaround?
Additional info:
I am using Office2007Black.isl file.
Hello Jquerijero,
I have investigated your issue, and I have asked our engineering staff to examine “Ribbon disappears after set WindowState to Normal runtime” further. To ensure that it will receive attention, I have logged this behavior in our internal tracking system with a Development ID of #201627. So I’ve created a case for you CAS-157531-P4P7P9 and will update you for the progress of this issue via the mentioned case. You could reach your case following the link below:
https://es.infragistics.com/my-account/support-activity
Thank you for using Infragistics Components.