We get an exception in our program that we were able to reproduce using the DevExpress DemoCenter 15.1. Please regard these steps to reproduce the issue:
* Open Sample Applications|Ribbon and Menu|Ribbon Simple Pad
* Switch style to e.g. "Office 2010"
* Open ribbon customize dialog and create a custom tab with a custom group
* Add a command to the new group (e.g. 'Save') and close customize dialog with OK
* Switch to the new ribbon tab and add the complete new _group_ to the quick access toolbar (QAT)
* Open the customize dialog again and "Reset all Customizations"
=> the custom ribbon page/group dissapear from the ribbon control but not from the QAT
=> If one now clicks the remaining group in the QAT an exception is thrown (see below)
How could we workaround this issue? I would prefer to get some code snippets from you. We work already with derived DevExpress classes so it won't be a problem to overwrite some methods if possible. We currently do not have the option to integrate a new Build of XtraBars Suite.
Regards,
Sven
************* Ausnahmetext **************
System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
bei DevExpress.XtraBars.Ribbon.RibbonPageGroup.ShowContentDropDownCore(RibbonPageGroupViewInfo groupInfo, RibbonToolbarPopupItemLink toolbarLink)
bei DevExpress.XtraBars.Ribbon.RibbonPageGroup.OnToolbarContentButtonClick(Object sender, ItemClickEventArgs e)
bei DevExpress.XtraBars.BarItem.OnClick(BarItemLink link)
bei DevExpress.XtraBars.BarBaseButtonItem.OnClick(BarItemLink link)
bei DevExpress.XtraBars.BarButtonItem.OnClick(BarItemLink link)
bei DevExpress.XtraBars.Ribbon.Internal.RibbonToolbarPopupItem.OnClick(BarItemLink link)
bei DevExpress.XtraBars.BarItemLink.OnLinkClick()
bei DevExpress.XtraBars.BarButtonItemLink.OnLinkClick()
bei DevExpress.XtraBars.BarItemLink.OnLinkAction(BarLinkAction action, Object actionArgs)
bei DevExpress.XtraBars.BarButtonItemLink.OnLinkAction(BarLinkAction action, Object actionArgs)
bei DevExpress.XtraBars.BarItemLink.OnLinkActionCore(BarLinkAction action, Object actionArgs)
bei DevExpress.XtraBars.ViewInfo.BarSelectionInfo.ClickLink(BarItemLink link)
bei DevExpress.XtraBars.ViewInfo.BarSelectionInfo.UnPressLink(BarItemLink link)
bei DevExpress.XtraBars.Ribbon.Handler.BaseRibbonHandler.OnUnPressItem(DXMouseEventArgs e, RibbonHitInfo hitInfo)
bei DevExpress.XtraBars.Ribbon.Handler.BaseRibbonHandler.OnUnPress(DXMouseEventArgs e, RibbonHitInfo hitInfo)
bei DevExpress.XtraBars.Ribbon.Handler.BaseRibbonHandler.OnMouseUp(DXMouseEventArgs e)
bei DevExpress.XtraBars.Ribbon.Handler.RibbonHandler.OnMouseUp(DXMouseEventArgs e)
bei DevExpress.XtraBars.Ribbon.RibbonControl.OnMouseUp(MouseEventArgs e)
bei System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
bei System.Windows.Forms.Control.WndProc(Message& m)
bei DevExpress.Utils.Controls.ControlBase.WndProc(Message& m)
bei DevExpress.XtraBars.Ribbon.RibbonControl.WndProc(Message& m)
bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Hi Sven,
I have reproduced this behavior. I am forwarding this issue to our developers for further processing. You will receive an automatic message once the status of this ticket is changed.
BTW, would you mind making this ticket public so that it can be available for other customers?