The Home ribbon page is missing after ribbon merging if a child form contains a nested frame with an invisible bar
RibbonControl - The Home ribbon page is missing after ribbon merging if a child form contains a nested frame with an invisible bar
Answers approved by DevExpress Support
We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.
Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.
- v15.2.4Download Official Update
- v15.1.9Download Official Update
- v14.2.13Download Official Update
The same problem here after update from 14.2.9 to 14.2.12.
Is there a fix for 14.2.x ??
Hello Peter,
We haven't fixed the issue in version 14.2 of our components. I will pass this ticket back to our developers to research the possibility to fix the issue in this version.
We will update this thread as soon as possible.
Any chance to get an working 15.1.8 anytime soon? 15.1.7 has several Bugs :(
Hello Martin,
We are planning to release version 15.1.8 at the end of this week or at the beginning of the next one.
So is this fixed in 15.1.8?
Now i have converted everything to 15.1.8 - still the same. Struggling now over a month to get an bug free devex release - so i can move to 15.1 ??
Hi Noxe,
We apologize for disturbing your release and the inconvenience it might have caused your business.
Arsen, the lead developer from the XtraBars team and Ilya from the XAF UI-sub team are currently sitting together to find the best resolution. I have just come back from the 8th floor after talking again with the guys on your case.
To be honest, it is a bit tricky, as the problem does not happen under most circumstances (it is not reproducible with our demos, short of XVideoRental where the code borrowed from eXpand is used) and is specific to runtime control creation and hiding items. In particular, here is a related code from XVideoRental\Common.Win\General\HideToolBar.cs (HideToolBarController.SetToolbarVisibility) that causes this behavior:
void SetToolbarVisibility(IBarManagerHolder template, bool visible) { foreach (Bar bar in template.BarManager.Bars) { if (bar.BarName == "ListView Toolbar" || bar.BarName == "Main Toolbar") { bar.Visible = visible; break; } } var supportActionsToolbarVisibility = template as ISupportActionsToolbarVisibility; if (supportActionsToolbarVisibility != null) (supportActionsToolbarVisibility).SetVisible(visible); }
We have recently found that the unexpected behavior will go away if you wrap this code into the BeginInvoke call as follows:
void SetToolbarVisibility(IBarManagerHolder template, bool visible) { ((Control)template).BeginInvoke(new MethodInvoker(() => { foreach(Bar bar in template.BarManager.Bars) { if(bar.BarName == "ListView Toolbar" || bar.BarName == "Main Toolbar") { bar.Visible = visible; break; } } var supportActionsToolbarVisibility = template as ISupportActionsToolbarVisibility; if(supportActionsToolbarVisibility != null) (supportActionsToolbarVisibility).SetVisible(visible); })); }
Please let us know if this custom code modification works on your side.
Also, please let us know if there is a chance for you to use the new XAF WinForms templates instead of the old ones where this behavior is not reproducible?
While we have not yet found a generic/better solution on our side for the old WinForms templates, I assure you that a high priority is assigned to this item and we are looking for alternative options.
As always, we will keep you informed of any changes or better solutions via email.
Thx Pal - will try this later if i am back! (thx for moving up and down 8 Floors ;) )
I will wait for your results, Noxe. When you have a chance, please also answer my question about the new templates.
P.S.
I have just come back from a short sick leave, so moving up and down is really helpful:-)
Dennis - your Workaround does indeed fix XVideoRental - but in my application the Problem is still there. here SetToolbarVisibility is never called. Any idea how i can Isolate the Problem?
BTW - switching to the new templates i currently not possible as i would have to completly rewrite those templates…
thx
Noxe
Thanks for your answers, Noxe…
>> Any idea how i can Isolate the Problem?
We'll update this thread as soon as we can.
Hello Martin,
Thank you for the update.
In the researched scenarios, the issue is related to change bars visibility during a form opening process. So, determining such code may point to the issue cause. If there is such code, try to wrap it into the BeginInvoke call.
Also you can try to set a breakpoint to the RibbonControl.MergeRibbon method and force form opening. The received call stack can help us research the cause of the issue.
Thanks,
Ilya P
Hi Ilya,
i dont see any difference in the MergeRibbon call in a situation where this happens, and when not. Both times same call stack. It seems like it depends on an nested listview. in my case i have a nested tree list - which is a master / detail view. Here it depends which objecttype gets first focused. In the video you see that if i open the object which contains an "group" item - start menu disappears. Probably that depends on if actions get disabled / inactive?
Hi Noxe,
Just wanted to inform you that we are researching other possible solutions and are also looking for diagnostic info you can provide. Please bear with us.
Noxe,
Our various attempts to replicate the behavior shown in your video were unsuccessful: it all worked fine even if TreeListEditor was used in the nested ListView. Logically, showing ribbon pages should not depend on the editor type and it seems that you just have some custom code executed depending on the object type of a View shown in a NestedFrame…In the case of the XVideoRental demo, this custom code was in the SetToolbarVisibility method of the HideToolBarController class. That said, I suggest you look for similar custom code in your project and dependent third-party modules. Probably, you can isolate this by excluding eXpand or other modules one by one.
If this does not help, we could research your entire app. In order to do this, please provide us with: 1. debuggable source code of your app, ideally without eXpand modules, but with third-party libraries and other things required to run this in a regular development environment with just Visual Studio and SQL Server installed ; 2. A test data set created in the ModuleUpdater class or the entire database backup so we can follow the repro instructions from your previous SWF video. We want to help you, and look forward to hearing from you.
Hi Dennis - any Idea how i can debug this on my side? I do not see any Code which access an bar - creating an sample is not really easy currently.
I could finally find the cause Dennis. I use a custom ObjectTreeList implementation for my TreeListEditor.
Here i set the focused node to NULL when the DataSource is updated. It seems like doing so ends in the callstack below. That finally raise an unmergeribbon. If i remove this Code the issue is gone?
protected override void UpdateDataSource(bool updateContent)
{
base.UpdateDataSource(updateContent);
if (this.FocusedNode != null)
{
var lineItem = this.FocusedNode.Object as LineItemBase;
if (lineItem == null || !lineItem.IsNewObject)
this.FocusedNode = null;
}
}
> DevExpress.XtraBars.v15.1.dll!DevExpress.XtraBars.Ribbon.RibbonControl.UnMergeRibbon() Zeile 3612 C#
DevExpress.XtraBars.v15.1.dll!DevExpress.XtraBars.Ribbon.RibbonControl.OnMdiChildActivate(object sender, System.EventArgs e) Zeile 2450 C#
System.Windows.Forms.dll!System.Windows.Forms.Form.OnMdiChildActivate(System.EventArgs e) Unbekannt
DevExpress.Utils.v15.1.dll!DevExpress.XtraEditors.XtraForm.OnMdiChildActivate(System.EventArgs e) Unbekannt
System.Windows.Forms.dll!System.Windows.Forms.Form.ActivateMdiChildInternal(System.Windows.Forms.Form form) Unbekannt
System.Windows.Forms.dll!System.Windows.Forms.Form.WmMdiActivate(ref System.Windows.Forms.Message m) Unbekannt
System.Windows.Forms.dll!System.Windows.Forms.Form.WndProc(ref System.Windows.Forms.Message m) Unbekannt
DevExpress.Utils.v15.1.dll!DevExpress.XtraEditors.XtraForm.WndProc(ref System.Windows.Forms.Message msg) Unbekannt
DevExpress.ExpressApp.Win.v15.1.dll!DevExpress.ExpressApp.Win.Templates.XtraFormTemplateBase.WndProc(ref System.Windows.Forms.Message msg) Zeile 395 C#
System.Windows.Forms.dll!System.Windows.Forms.Control.ControlNativeWindow.OnMessage(ref System.Windows.Forms.Message m) Unbekannt
System.Windows.Forms.dll!System.Windows.Forms.Control.ControlNativeWindow.WndProc(ref System.Windows.Forms.Message m) Unbekannt
System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.Callback(System.IntPtr hWnd, int msg, System.IntPtr wparam, System.IntPtr lparam) Unbekannt
[Übergang von Systemeigen zu Verwaltet]
[Übergang von Verwaltet zu Systemeigen]
DevExpress.Utils.v15.1.dll!DevExpress.Utils.Drawing.Helpers.Win32SubclasserFactory.Win32Subclasser.SubClassProcInner(System.IntPtr hWnd, System.IntPtr Msg, System.IntPtr wParam, System.IntPtr lParam, System.IntPtr uIdSubclass, System.IntPtr dwRefData) Unbekannt
[Übergang von Systemeigen zu Verwaltet]
[Übergang von Verwaltet zu Systemeigen]
System.Windows.Forms.dll!System.Windows.Forms.Form.DefWndProc(ref System.Windows.Forms.Message m) Unbekannt
System.Windows.Forms.dll!System.Windows.Forms.Control.WndProc(ref System.Windows.Forms.Message m) Unbekannt
System.Windows.Forms.dll!System.Windows.Forms.ScrollableControl.WndProc(ref System.Windows.Forms.Message m) Unbekannt
System.Windows.Forms.dll!System.Windows.Forms.ContainerControl.WndProc(ref System.Windows.Forms.Message m) Unbekannt
System.Windows.Forms.dll!System.Windows.Forms.Form.WndProc(ref System.Windows.Forms.Message m) Unbekannt
DevExpress.Utils.v15.1.dll!DevExpress.XtraEditors.XtraForm.WndProc(ref System.Windows.Forms.Message msg) Unbekannt
DevExpress.ExpressApp.Win.v15.1.dll!DevExpress.ExpressApp.Win.Templates.XtraFormTemplateBase.WndProc(ref System.Windows.Forms.Message msg) Zeile 395 C#
System.Windows.Forms.dll!System.Windows.Forms.Control.ControlNativeWindow.OnMessage(ref System.Windows.Forms.Message m) Unbekannt
System.Windows.Forms.dll!System.Windows.Forms.Control.ControlNativeWindow.WndProc(ref System.Windows.Forms.Message m) Unbekannt
System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.Callback(System.IntPtr hWnd, int msg, System.IntPtr wparam, System.IntPtr lparam) Unbekannt
[Übergang von Systemeigen zu Verwaltet]
[Übergang von Verwaltet zu Systemeigen]
DevExpress.Utils.v15.1.dll!DevExpress.Utils.Drawing.Helpers.Win32SubclasserFactory.Win32Subclasser.SubClassProcInner(System.IntPtr hWnd, System.IntPtr Msg, System.IntPtr wParam, System.IntPtr lParam, System.IntPtr uIdSubclass, System.IntPtr dwRefData) Unbekannt
[Übergang von Systemeigen zu Verwaltet]
[Übergang von Verwaltet zu Systemeigen]
System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.DefWndProc(ref System.Windows.Forms.Message m) Unbekannt
System.Windows.Forms.dll!System.Windows.Forms.Control.DefWndProc(ref System.Windows.Forms.Message m) Unbekannt
System.Windows.Forms.dll!System.Windows.Forms.Control.WndProc(ref System.Windows.Forms.Message m) Unbekannt
System.Windows.Forms.dll!System.Windows.Forms.MdiClient.WndProc(ref System.Windows.Forms.Message m) Unbekannt
System.Windows.Forms.dll!System.Windows.Forms.Control.ControlNativeWindow.OnMessage(ref System.Windows.Forms.Message m) Unbekannt
System.Windows.Forms.dll!System.Windows.Forms.Control.ControlNativeWindow.WndProc(ref System.Windows.Forms.Message m) Unbekannt
System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.Callback(System.IntPtr hWnd, int msg, System.IntPtr wparam, System.IntPtr lparam) Unbekannt
System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.DefWndProc(ref System.Windows.Forms.Message m) Unbekannt
DevExpress.XtraBars.v15.1.dll!DevExpress.Utils.Mdi.MdiClientSubclasser.WndProc(ref System.Windows.Forms.Message m) Zeile 332 C#
System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.Callback(System.IntPtr hWnd, int msg, System.IntPtr wparam, System.IntPtr lparam) Unbekannt
[Übergang von Systemeigen zu Verwaltet]
[Übergang von Verwaltet zu Systemeigen]
DevExpress.XtraBars.v15.1.dll!DevExpress.XtraBars.Docking2010.MDIClientManagementStrategy.CheckFocus(int Msg, DevExpress.XtraBars.Docking2010.Views.BaseView view, System.Windows.Forms.Control control, System.IntPtr wParam) Zeile 106 C#
DevExpress.XtraBars.v15.1.dll!DevExpress.XtraBars.Docking2010.DocumentManager.CheckFocus(int msg, DevExpress.XtraBars.Docking2010.Views.BaseView view, System.Windows.Forms.Control control, System.IntPtr wParam) Zeile 344 C#
DevExpress.XtraBars.v15.1.dll!DevExpress.XtraBars.Docking2010.Views.BaseDocumentCollection.CheckFocus(int msg, System.Windows.Forms.Control control, System.IntPtr wParam) Zeile 90 C#
DevExpress.XtraBars.v15.1.dll!DevExpress.XtraBars.Docking2010.Views.BaseDocumentCollection.PostFilterMessageCore(int Msg, System.Windows.Forms.Control wnd, System.IntPtr HWnd, System.IntPtr WParam, System.IntPtr LParam) Zeile 251 C#
DevExpress.XtraBars.v15.1.dll!DevExpress.XtraBars.Docking2010.Views.BaseDocumentCollection.DevExpress.Utils.Win.Hook.IHookController.InternalPostFilterMessage(int Msg, System.Windows.Forms.Control wnd, System.IntPtr HWnd, System.IntPtr WParam, System.IntPtr LParam) Zeile 94 C#
DevExpress.Utils.v15.1.dll!DevExpress.Utils.Win.Hook.HookManager.InternalPostFilterMessage(DevExpress.Utils.Win.Hook.HookInfo hInfo, int Msg, System.Windows.Forms.Control wnd, System.IntPtr HWnd, System.IntPtr WParam, System.IntPtr LParam) Unbekannt
DevExpress.Utils.v15.1.dll!DevExpress.Utils.Win.Hook.HookManager.WndHook(int ncode, System.IntPtr wParam, System.IntPtr lParam) Unbekannt
[Übergang von Systemeigen zu Verwaltet]
[Übergang von Verwaltet zu Systemeigen]
System.Windows.Forms.dll!System.Windows.Forms.ContainerControl.FocusActiveControlInternal() Unbekannt
System.Windows.Forms.dll!System.Windows.Forms.ContainerControl.SetActiveControlInternal(System.Windows.Forms.Control value) Unbekannt
System.Windows.Forms.dll!System.Windows.Forms.ContainerControl.ActiveControl.set(System.Windows.Forms.Control value) Unbekannt
System.Windows.Forms.dll!System.Windows.Forms.Control.Select(bool directed, bool forward) Unbekannt
DevExpress.XtraBars.v15.1.dll!DevExpress.XtraBars.BarDockControl.RemoveDockable(DevExpress.XtraBars.Utils.IDockableObject dockObject, bool updateIndexes) Zeile 761 C#
DevExpress.XtraBars.v15.1.dll!DevExpress.XtraBars.BarDockControl.RemoveDockable(DevExpress.XtraBars.Utils.IDockableObject dockObject) Zeile 732 C#
DevExpress.XtraBars.v15.1.dll!DevExpress.XtraBars.Bar.Dispose(bool disposing) Zeile 683 C#
System.dll!System.ComponentModel.Component.Dispose() Unbekannt
DevExpress.ExpressApp.Win.v15.1.dll!DevExpress.ExpressApp.Win.Templates.NestedFrameTemplate.Dispose(bool disposing) Zeile 136 C#
System.dll!System.ComponentModel.Component.Dispose() Unbekannt
DevExpress.ExpressApp.v15.1.dll!DevExpress.Persistent.Base.SafeExecutor.Dispose.AnonymousMethod__0() Unbekannt
DevExpress.ExpressApp.v15.1.dll!DevExpress.Persistent.Base.SafeExecutor.Execute(DevExpress.Persistent.Base.Method method, object targetObject, string targetObjectIdentifier) Unbekannt
DevExpress.ExpressApp.v15.1.dll!DevExpress.Persistent.Base.SafeExecutor.Dispose(System.IDisposable targetObject, string targetObjectIdentifier) Unbekannt
DevExpress.ExpressApp.v15.1.dll!DevExpress.ExpressApp.Frame.Dispose() Unbekannt
DevExpress.ExpressApp.v15.1.dll!DevExpress.ExpressApp.Editors.ListPropertyEditor.Dispose(bool disposing) Unbekannt
DevExpress.ExpressApp.v15.1.dll!DevExpress.ExpressApp.Editors.ViewItem.Dispose.AnonymousMethod__0() Unbekannt
DevExpress.ExpressApp.v15.1.dll!DevExpress.Persistent.Base.SafeExecutor.Execute(DevExpress.Persistent.Base.Method method, object targetObject, string targetObjectIdentifier) Unbekannt
DevExpress.ExpressApp.v15.1.dll!DevExpress.ExpressApp.Editors.ViewItem.Dispose() Unbekannt
DevExpress.ExpressApp.v15.1.dll!DevExpress.Persistent.Base.SafeExecutor.Dispose.AnonymousMethod__0() Unbekannt
DevExpress.ExpressApp.v15.1.dll!DevExpress.Persistent.Base.SafeExecutor.Execute(DevExpress.Persistent.Base.Method method, object targetObject, string targetObjectIdentifier) Unbekannt
DevExpress.ExpressApp.v15.1.dll!DevExpress.Persistent.Base.SafeExecutor.Dispose(System.IDisposable targetObject, string targetObjectIdentifier) Unbekannt
DevExpress.ExpressApp.v15.1.dll!DevExpress.ExpressApp.CompositeView.ClearItems() Unbekannt
DevExpress.ExpressApp.v15.1.dll!DevExpress.ExpressApp.CompositeView.DisposeCore() Unbekannt
DevExpress.ExpressApp.v15.1.dll!DevExpress.ExpressApp.DetailView.DisposeCore() Unbekannt
DevExpress.ExpressApp.v15.1.dll!DevExpress.ExpressApp.View.Dispose.AnonymousMethod__1() Unbekannt
DevExpress.ExpressApp.v15.1.dll!DevExpress.Persistent.Base.SafeExecutor.Execute(DevExpress.Persistent.Base.Method method, object targetObject, string targetObjectIdentifier) Unbekannt
DevExpress.ExpressApp.v15.1.dll!DevExpress.ExpressApp.View.Dispose() Unbekannt
DevExpress.ExpressApp.v15.1.dll!DevExpress.ExpressApp.Frame.DisposeView(DevExpress.ExpressApp.View view) Unbekannt
DevExpress.ExpressApp.v15.1.dll!DevExpress.ExpressApp.Frame.SetView(DevExpress.ExpressApp.View view, bool updateControllers, DevExpress.ExpressApp.Frame sourceFrame) Unbekannt
DevExpress.ExpressApp.v15.1.dll!DevExpress.ExpressApp.ListView.UpdateEditFrame(object currentObject) Unbekannt
DevExpress.ExpressApp.v15.1.dll!DevExpress.ExpressApp.ListView.DoOnListEditorFocusedObjectChanged() Unbekannt
DevExpress.ExpressApp.v15.1.dll!DevExpress.ExpressApp.ListView.listEditor_FocusedObjectChanged(object sender, System.EventArgs e) Unbekannt
DevExpress.ExpressApp.v15.1.dll!DevExpress.ExpressApp.Editors.ListEditor.OnFocusedObjectChanged() Unbekannt
DevExpress.ExpressApp.TreeListEditors.Win.v15.1.dll!DevExpress.ExpressApp.TreeListEditors.Win.TreeListEditor.treeList_FocusedNodeChanged(object sender, DevExpress.XtraTreeList.FocusedNodeChangedEventArgs e) Unbekannt
DevExpress.XtraTreeList.v15.1.dll!DevExpress.XtraTreeList.TreeList.RaiseFocusedNodeChanged(DevExpress.XtraTreeList.Nodes.TreeListNode oldNode, DevExpress.XtraTreeList.Nodes.TreeListNode newNode) Unbekannt
DevExpress.ExpressApp.Win.v15.1.dll!DevExpress.ExpressApp.Win.Controls.ObjectTreeList.RaiseFocusedNodeChanged(DevExpress.XtraTreeList.Nodes.TreeListNode oldNode, DevExpress.XtraTreeList.Nodes.TreeListNode newNode) Zeile 655 C#
DevExpress.XtraTreeList.v15.1.dll!DevExpress.XtraTreeList.TreeList.InternalSetFocusedRowIndex(int newFocusedRowIndex) Unbekannt
DevExpress.XtraTreeList.v15.1.dll!DevExpress.XtraTreeList.TreeList.FocusedRowIndex.set(int value) Unbekannt
DevExpress.XtraTreeList.v15.1.dll!DevExpress.XtraTreeList.TreeList.SetFocusedNode(DevExpress.XtraTreeList.Nodes.TreeListNode node) Unbekannt
DevExpress.ExpressApp.Win.v15.1.dll!DevExpress.ExpressApp.Win.Controls.ObjectTreeList.SetFocusedNode(DevExpress.XtraTreeList.Nodes.TreeListNode node) Zeile 723 C#
DevExpress.XtraTreeList.v15.1.dll!DevExpress.XtraTreeList.TreeList.FocusedNode.set(DevExpress.XtraTreeList.Nodes.TreeListNode value) Unbekannt
DevExpress.ExpressApp.Win.v15.1.dll!DevExpress.ExpressApp.Win.Controls.ObjectTreeList.FocusedNode.set(DevExpress.ExpressApp.Win.Controls.ObjectTreeListNode value) Zeile 862 C#
VenDoc.Module.CustomEditors.Win.dll!VenDoc.Module.CustomEditors.Win.Controls.VDObjectTreeList.UpdateDataSource(bool updateContent) Zeile 46 C#
DevExpress.XtraTreeList.v15.1.dll!DevExpress.XtraTreeList.TreeList.UpdateDataSourceOnChangeDataSource() Unbekannt
DevExpress.XtraTreeList.v15.1.dll!DevExpress.XtraTreeList.TreeList.DataSource.set(object value) Unbekannt
DevExpress.ExpressApp.Win.v15.1.dll!DevExpress.ExpressApp.Win.Controls.ObjectTreeList.DataSource.set(object value) Zeile 849 C#
DevExpress.ExpressApp.TreeListEditors.Win.v15.1.dll!DevExpress.ExpressApp.TreeListEditors.Win.TreeListEditor.UpdateControlDataSource() Unbekannt
DevExpress.ExpressApp.TreeListEditors.Win.v15.1.dll!DevExpress.ExpressApp.TreeListEditors.Win.TreeListEditor.treeList_HandleCreated(object sender, System.EventArgs e) Unbekannt
System.Windows.Forms.dll!System.Windows.Forms.Control.OnHandleCreated(System.EventArgs e) Unbekannt
DevExpress.XtraTreeList.v15.1.dll!DevExpress.XtraTreeList.TreeList.OnHandleCreated(System.EventArgs e) Unbekannt
System.Windows.Forms.dll!System.Windows.Forms.Control.WmCreate(ref System.Windows.Forms.Message m) Unbekannt
System.Windows.Forms.dll!System.Windows.Forms.Control.WndProc(ref System.Windows.Forms.Message m) Unbekannt
DevExpress.XtraEditors.v15.1.dll!DevExpress.XtraEditors.Container.EditorContainer.WndProc(ref System.Windows.Forms.Message m) Unbekannt
DevExpress.XtraTreeList.v15.1.dll!DevExpress.XtraTreeList.TreeList.WndProc(ref System.Windows.Forms.Message m) Unbekannt
System.Windows.Forms.dll!System.Windows.Forms.Control.ControlNativeWindow.OnMessage(ref System.Windows.Forms.Message m) Unbekannt
System.Windows.Forms.dll!System.Windows.Forms.Control.ControlNativeWindow.WndProc(ref System.Windows.Forms.Message m) Unbekannt
System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.Callback(System.IntPtr hWnd, int msg, System.IntPtr wparam, System.IntPtr lparam) Unbekannt
[Übergang von Systemeigen zu Verwaltet]
[Übergang von Verwaltet zu Systemeigen]
System.Windows.Forms.dll!System.Windows.Forms.UnsafeNativeMethods.CreateWindowEx(int dwExStyle, string lpszClassName, string lpszWindowName, int style, int x, int y, int width, int height, System.Runtime.InteropServices.HandleRef hWndParent, System.Runtime.InteropServices.HandleRef hMenu, System.Runtime.InteropServices.HandleRef hInst, object pvParam) Unbekannt
System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.CreateHandle(System.Windows.Forms.CreateParams cp) Unbekannt
System.Windows.Forms.dll!System.Windows.Forms.Control.CreateHandle() Unbekannt
System.Windows.Forms.dll!System.Windows.Forms.Control.CreateControl(bool fIgnoreVisible) Unbekannt
System.Windows.Forms.dll!System.Windows.Forms.Control.CreateControl(bool fIgnoreVisible) Unbekannt
System.Windows.Forms.dll!System.Windows.Forms.Control.CreateControl(bool fIgnoreVisible) Unbekannt
System.Windows.Forms.dll!System.Windows.Forms.Control.CreateControl() Unbekannt
System.Windows.Forms.dll!System.Windows.Forms.Control.ControlCollection.Add(System.Windows.Forms.Control value) Unbekannt
DevExpress.ExpressApp.Win.v15.1.dll!DevExpress.ExpressApp.Win.Templates.ViewSiteManager.FillViewSite(System.Windows.Forms.Control control) Zeile 97 C#
DevExpress.ExpressApp.Win.v15.1.dll!DevExpress.ExpressApp.Win.Templates.ViewSiteManager.FillViewSite() Zeile 74 C#
DevExpress.ExpressApp.Win.v15.1.dll!DevExpress.ExpressApp.Win.Templates.ViewSiteManager.viewSiteControl_HandleCreated(object sender, System.EventArgs e) Zeile 160 C#
System.Windows.Forms.dll!System.Windows.Forms.Control.OnHandleCreated(System.EventArgs e) Unbekannt
DevExpress.Utils.v15.1.dll!DevExpress.XtraEditors.XtraScrollableControl.OnHandleCreated(System.EventArgs e) Unbekannt
DevExpress.Utils.v15.1.dll!DevExpress.XtraEditors.PanelControl.OnHandleCreated(System.EventArgs e) Unbekannt
System.Windows.Forms.dll!System.Windows.Forms.Control.WmCreate(ref System.Windows.Forms.Message m) Unbekannt
System.Windows.Forms.dll!System.Windows.Forms.Control.WndProc(ref System.Windows.Forms.Message m) Unbekannt
System.Windows.Forms.dll!System.Windows.Forms.ScrollableControl.WndProc(ref System.Windows.Forms.Message m) Unbekannt
DevExpress.Utils.v15.1.dll!DevExpress.XtraEditors.XtraScrollableControl.WndProc(ref System.Windows.Forms.Message m) Unbekannt
DevExpress.Utils.v15.1.dll!DevExpress.Utils.Controls.PanelBase.WndProc(ref System.Windows.Forms.Message m) Unbekannt
System.Windows.Forms.dll!System.Windows.Forms.Control.ControlNativeWindow.OnMessage(ref System.Windows.Forms.Message m) Unbekannt
System.Windows.Forms.dll!System.Windows.Forms.Control.ControlNativeWindow.WndProc(ref System.Windows.Forms.Message m) Unbekannt
System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.Callback(System.IntPtr hWnd, int msg, System.IntPtr wparam, System.IntPtr lparam) Unbekannt
[Übergang von Systemeigen zu Verwaltet]
[Übergang von Verwaltet zu Systemeigen]
System.Windows.Forms.dll!System.Windows.Forms.UnsafeNativeMethods.CreateWindowEx(int dwExStyle, string lpszClassName, string lpszWindowName, int style, int x, int y, int width, int height, System.Runtime.InteropServices.HandleRef hWndParent, System.Runtime.InteropServices.HandleRef hMenu, System.Runtime.InteropServices.HandleRef hInst, object pvParam) Unbekannt
System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.CreateHandle(System.Windows.Forms.CreateParams cp) Unbekannt
System.Windows.Forms.dll!System.Windows.Forms.Control.CreateHandle() Unbekannt
System.Windows.Forms.dll!System.Windows.Forms.Control.CreateControl(bool fIgnoreVisible) Unbekannt
System.Windows.Forms.dll!System.Windows.Forms.Control.CreateControl(bool fIgnoreVisible) Unbekannt
System.Windows.Forms.dll!System.Windows.Forms.Control.CreateControl(bool fIgnoreVisible) Unbekannt
System.Windows.Forms.dll!System.Windows.Forms.Control.CreateControl(bool fIgnoreVisible) Unbekannt
System.Windows.Forms.dll!System.Windows.Forms.Control.CreateControl(bool fIgnoreVisible) Unbekannt
System.Windows.Forms.dll!System.Windows.Forms.Control.CreateControl() Unbekannt
System.Windows.Forms.dll!System.Windows.Forms.Control.WmShowWindow(ref System.Windows.Forms.Message m) Unbekannt
System.Windows.Forms.dll!System.Windows.Forms.Control.WndProc(ref System.Windows.Forms.Message m) Unbekannt
System.Windows.Forms.dll!System.Windows.Forms.ScrollableControl.WndProc(ref System.Windows.Forms.Message m) Unbekannt
System.Windows.Forms.dll!System.Windows.Forms.ContainerControl.WndProc(ref System.Windows.Forms.Message m) Unbekannt
System.Windows.Forms.dll!System.Windows.Forms.Form.WmShowWindow(ref System.Windows.Forms.Message m) Unbekannt
System.Windows.Forms.dll!System.Windows.Forms.Form.WndProc(ref System.Windows.Forms.Message m) Unbekannt
DevExpress.Utils.v15.1.dll!DevExpress.XtraEditors.XtraForm.WndProc(ref System.Windows.Forms.Message msg) Unbekannt
DevExpress.ExpressApp.Win.v15.1.dll!DevExpress.ExpressApp.Win.Templates.XtraFormTemplateBase.WndProc(ref System.Windows.Forms.Message msg) Zeile 395 C#
System.Windows.Forms.dll!System.Windows.Forms.Control.ControlNativeWindow.OnMessage(ref System.Windows.Forms.Message m) Unbekannt
System.Windows.Forms.dll!System.Windows.Forms.Control.ControlNativeWindow.WndProc(ref System.Windows.Forms.Message m) Unbekannt
System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.Callback(System.IntPtr hWnd, int msg, System.IntPtr wparam, System.IntPtr lparam) Unbekannt
[Übergang von Systemeigen zu Verwaltet]
[Übergang von Verwaltet zu Systemeigen]
DevExpress.Utils.v15.1.dll!DevExpress.Utils.Drawing.Helpers.Win32SubclasserFactory.Win32Subclasser.SubClassProcInner(System.IntPtr hWnd, System.IntPtr Msg, System.IntPtr wParam, System.IntPtr lParam, System.IntPtr uIdSubclass, System.IntPtr dwRefData) Unbekannt
[Übergang von Systemeigen zu Verwaltet]
[Übergang von Verwaltet zu Systemeigen]
System.Windows.Forms.dll!System.Windows.Forms.UnsafeNativeMethods.CreateWindowEx(int dwExStyle, string lpszClassName, string lpszWindowName, int style, int x, int y, int width, int height, System.Runtime.InteropServices.HandleRef hWndParent, System.Runtime.InteropServices.HandleRef hMenu, System.Runtime.InteropServices.HandleRef hInst, object pvParam) Unbekannt
System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.CreateHandle(System.Windows.Forms.CreateParams cp) Unbekannt
System.Windows.Forms.dll!System.Windows.Forms.Control.CreateHandle() Unbekannt
System.Windows.Forms.dll!System.Windows.Forms.Form.CreateHandle() Unbekannt
DevExpress.Utils.v15.1.dll!DevExpress.XtraEditors.XtraForm.CreateHandle() Unbekannt
DevExpress.XtraBars.v15.1.dll!DevExpress.XtraBars.Ribbon.RibbonForm.CreateHandle() Zeile 158 C#
System.Windows.Forms.dll!System.Windows.Forms.Control.Handle.get() Unbekannt
System.Windows.Forms.dll!System.Windows.Forms.Form.SetVisibleCore(bool value) Unbekannt
DevExpress.Utils.v15.1.dll!DevExpress.XtraEditors.XtraForm.SetVisibleCore(bool value) Unbekannt
DevExpress.XtraBars.v15.1.dll!DevExpress.XtraBars.Ribbon.RibbonForm.SetVisibleCore(bool value) Zeile 732 C#
System.Windows.Forms.dll!System.Windows.Forms.Control.Show() Unbekannt
DevExpress.ExpressApp.Win.v15.1.dll!DevExpress.ExpressApp.Win.WinWindow.Show() Zeile 366 C#
DevExpress.ExpressApp.Win.v15.1.dll!DevExpress.ExpressApp.Win.MdiShowViewStrategy.ShowWindow(DevExpress.ExpressApp.Win.WinWindow window) Zeile 566 C#
DevExpress.ExpressApp.Win.v15.1.dll!DevExpress.ExpressApp.Win.MdiShowViewStrategy.ShowViewInInspector(DevExpress.ExpressApp.ShowViewParameters parameters, DevExpress.ExpressApp.ShowViewSource showViewSource) Zeile 540 C#
DevExpress.ExpressApp.Win.v15.1.dll!DevExpress.ExpressApp.Win.WinShowViewStrategyBase.ShowViewInNewWindow(DevExpress.ExpressApp.ShowViewParameters parameters, DevExpress.ExpressApp.ShowViewSource showViewSource) Zeile 444 C#
DevExpress.ExpressApp.Win.v15.1.dll!DevExpress.ExpressApp.Win.MdiShowViewStrategy.ShowViewFromCommonView(DevExpress.ExpressApp.ShowViewParameters parameters, DevExpress.ExpressApp.ShowViewSource showViewSource) Zeile 486 C#
DevExpress.ExpressApp.v15.1.dll!DevExpress.ExpressApp.ShowViewStrategyBase.ShowViewCore(DevExpress.ExpressApp.ShowViewParameters parameters, DevExpress.ExpressApp.ShowViewSource showViewSource) Unbekannt
DevExpress.ExpressApp.Win.v15.1.dll!DevExpress.ExpressApp.Win.MdiShowViewStrategy.ShowViewCore(DevExpress.ExpressApp.ShowViewParameters parameters, DevExpress.ExpressApp.ShowViewSource showViewSource) Zeile 468 C#
VenDoc.Module.Win.dll!VenDoc.Module.Win.Classes.VDMdiShowViewStrategy.ShowViewCore(DevExpress.ExpressApp.ShowViewParameters parameters, DevExpress.ExpressApp.ShowViewSource showViewSource) Zeile 59 C#
DevExpress.ExpressApp.v15.1.dll!DevExpress.ExpressApp.ShowViewStrategyBase.ShowView(DevExpress.ExpressApp.ShowViewParameters parameters, DevExpress.ExpressApp.ShowViewSource showViewSource) Unbekannt
DevExpress.ExpressApp.v15.1.dll!DevExpress.ExpressApp.Frame.ProcessActionCreatedView(DevExpress.ExpressApp.Actions.ActionBaseEventArgs e) Unbekannt
DevExpress.ExpressApp.v15.1.dll!DevExpress.ExpressApp.Frame.ShowViewAction_ProcessCreatedView(object sender, DevExpress.ExpressApp.Actions.ActionBaseEventArgs e) Unbekannt
DevExpress.ExpressApp.v15.1.dll!DevExpress.ExpressApp.Actions.ActionBase.OnProcessCreatedView(DevExpress.ExpressApp.Actions.ActionBaseEventArgs e) Unbekannt
DevExpress.ExpressApp.v15.1.dll!DevExpress.ExpressApp.Actions.ActionBase.ExecuteCore(System.Delegate handler, DevExpress.ExpressApp.Actions.ActionBaseEventArgs eventArgs) Unbekannt
DevExpress.ExpressApp.v15.1.dll!DevExpress.ExpressApp.Actions.SimpleAction.DoExecute() Unbekannt
DevExpress.ExpressApp.v15.1.dll!DevExpress.ExpressApp.SystemModule.ListViewProcessCurrentObjectController.View_ProcessSelectedItem(object sender, System.EventArgs e) Unbekannt
DevExpress.ExpressApp.v15.1.dll!DevExpress.ExpressApp.ListView.OnProcessSelectedItem() Unbekannt
DevExpress.ExpressApp.v15.1.dll!DevExpress.ExpressApp.ListView.listEditor_ProcessSelectedItem(object sender, System.EventArgs e) Unbekannt
DevExpress.ExpressApp.v15.1.dll!DevExpress.ExpressApp.Editors.ListEditor.OnProcessSelectedItem() Unbekannt
DevExpress.ExpressApp.Win.v15.1.dll!DevExpress.ExpressApp.Win.Editors.GridListEditor.OnProcessSelectedItem() Zeile 688 C#
DevExpress.ExpressApp.Win.v15.1.dll!DevExpress.ExpressApp.Win.Editors.WinColumnsListEditor.ProcessGridKeyDown(System.Windows.Forms.KeyEventArgs e) Zeile 828 C#
DevExpress.ExpressApp.Win.v15.1.dll!DevExpress.ExpressApp.Win.Editors.WinColumnsListEditor.grid_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e) Zeile 568 C#
BTW: You could replicate the behaviour with the SetToolbarVisibility - i guess .Invoke was just an workaround - not the solution? Seems like my issue is related - during form opening the editview gets changed/disposed - so the ribbon gets unmerged. So any chance you might fix this? before 15.1.7 everything worked fine?
Thanks for informing us of your results, Noxe. We need some additional time to replicate and research the behavior of your custom TreeListEditor/ObjectTreeList implementation (UpdateDataSource).
So far, we have not found a solution better than BeginInvoke for the old WinForms templates, but we will continue our research. I should emphasize, however, that this specific situation does not occur with the new templates. With each new XtraBars release, there are a lot of changes (e.g., Selected document is changed when its toolbar is being dragged) and it is quite possible that this scenario was not covered by existing tests for the old WinForms templates, which are in the maintenance mode after introduction of the new WinForms templates in v14.2. So, it is recommended to migrate to the new templates to avoid problems in the future.
Regardless, let us first replicate the behavior with a custom ObjectTreeList and see what we can do from there. Thanks.
Noxe,
Our XtraBars guys introduced a fix that we hope should care about your situation as well. With it, the BeginInvoke call is no longer required even in our artificial test sample or the original XVideoRental app. We hope to provide you with the hotfix to test as soon as we can.
You Rock as always ;) Thx Pal!
Seems like the fix works for XVideoRental - but not in my Situation :( I will see if i can create an sample - or if i will remove my code in this Situation.
We regret to hear of your results, Noxe:-(
We still want to help you and look forward to receiving either a small test sample or your entire debuggable project (see the prerequisites 1-2 above).
I've encountered the same problem in my specific situation.
Martin, could you check if you use UseOldTemplates = false for WinApplication - with this setting the problem has disappeared in my case.
@MichalH:
I am afraid this option is not currently feasible for Martin: >>"BTW - switching to the new templates i currently not possible as i would have to completly rewrite those templates…"
Dennis, I am afraid I haven't read the thread properly ;-) BTW your hotfix below works in my case - using V2 templates is not necessary with it.
@MichalH: No worries. And thank you for your confirmation - we are happy to hear that it works in your particular scenario.
I have the same issue the Home Ribbon is messing on version 15.2.4.0
UseOldTemplates is set to false
Hello,
To process your recent post more efficiently, I created a separate ticket on your behalf: RibbonControl - The Home ribbon page is missing after ribbon merging if a child form contains a nested frame with an invisible bar. This ticket is currently in our processing queue. Our team will address it as soon as we have any updates.