I have two ToolWindows in a ToolTabStirp which in a DockContainer.
At first, I show to the user this tow ToolWindows as a TabbedDocument with dockposition in fill. But, my client want to have a button that when the user clicks on the button, the two ToolWindows are shown as a TabbedDocument but with dockposition in horizontal (top and bottom) or vertical (left and right).
I need to do this quickly.
I have used this code to do horizontal mode:
.toolWindowComparacion, Telerik.WinControls.UI.Docking.DockPosition.Left, Telerik.WinControls.UI.Docking.DockType.Document);
.toolWindowReference, Telerik.WinControls.UI.Docking.DockPosition.Right, Telerik.WinControls.UI.Docking.DockType.Document);
When the user to do click the first time, it works fine, but in the second, third... time, it appear new toolwindows in the dockcontainer.