Hello,
If there are no tabs in the Ribbon control, and I choose to un-check the 'Minimize the Ribbon' command in the QuickAccessToolbar Chevron Button's drop down, then I get the following exception:
************** Exception Text **************
System.InvalidOperationException: Operation is not valid due to the current state of the object.
at Divelements.SandRibbon.Ribbon.set_Minimized(Boolean value)
at Divelements.SandRibbon.x5df3193abe65f986.x0d1e07b82fd7d672(Boolean xc8051b100df41d07)
at Divelements.SandRibbon.x5df3193abe65f986.OnActivateDropdown(Boolean keyboard)
at Divelements.SandRibbon.Button.OnMouseDown(MouseEventArgs e)
at Divelements.SandRibbon.ParentWidgetBase.OnMouseDown(MouseEventArgs e)
at Divelements.SandRibbon.xf34bfe8059f352c4.OnMouseDown(MouseEventArgs e)
at Divelements.SandRibbon.ParentWidgetBase.OnMouseDown(MouseEventArgs e)
at Divelements.SandRibbon.SandRibbonControlBase.OnMouseDown(MouseEventArgs e)
at Divelements.SandRibbon.Ribbon.OnMouseDown(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at Divelements.SandRibbon.SandRibbonControlBase.WndProc(Message& m)
at Divelements.SandRibbon.Ribbon.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Now I have been able to disable the menu item by attaching an event to the ConfigureCustomizePopup event; however the Context Menu still shows this menu item enabled.
My question is - how can I gain access to the Context menu that exists on the Ribbon control so I can disable the 'Minimize the Ribbon' menu item there as well - OR - is there a better way to fix this problem.
Thanks,
Mike