Hello,
I am using the CAB Enabling Kit in my test application. I've added two docked windows to the Dockable Workspace:
this.Workspaces[WorkspaceNames.DockableWorkspace].Show(view1, smartPartInfo1);
this.Workspaces[WorkspaceNames.DockableWorkspace].Show(view2, smartPartInfo2);
I can see both windows and they are both functional.
Next, if I try to close one of these windows (by clicking its [x] button) the both are closed!
That is wrong because the user wants to close just one and to keep the second one opened.
After some investigation, I've found the reason of this wrong behavior.
When you click the Close button, the RadDockableWorkspace.dockManager_DockingStateChanging/Changed
pair of events raised TWICE(!). For the first time, with the sender = dockingManager, and for the second,
with the sender = DockPanel (= the window you are closing).
So, the first time, it is the dockingManager.Hide() method called.
I think it closes ALL docked windows.
I've made some changes in RadDockableWorkspace.dockManager_DockingStateChanging/Changed code
to run the right Hide() method of the only window being closed.
Replace
(sender as Control).Hide()
with
(e.DockObject as Control).Hide()
After this change, the behavior of my two windows is as expected
but I am not sure that I found the good fixing up of the problem,
because I need to recomplie the Telerik.CAB.WinForms dll.
Could you please help me to get the right solution of the problem?