Hi,
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:
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.
Thanks,
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:
public
void
mostrarHorizontal()
{
this
.DockContainer.DockControl(
this
.toolWindowComparacion, Telerik.WinControls.UI.Docking.DockPosition.Left, Telerik.WinControls.UI.Docking.DockType.Document);
this
.DockContainer.DockControl(
this
.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.
Thanks,