
Hi,
How to Programatically creating the docksite with the toolwindow in floated state.
I have docksite named docksite1 and it have two toolwindows named toolwidnow1 and toolwidnow2 in docksite1 of my main application. If i drag the toolwindow named toolwidnow1 and float it then i want to remove this toolwindow from the docksite1 and want to programatically create the new docksite and add the toolwindow1 in that new docksite and float this toolwindow.
Code used given below in the window state change event handler of the docksite1.
void docksite1_WindowStateChanged(object sender, ActiproSoftware.Windows.Controls.Docking.DockingWindowStateChangedEventArgse)
{
docksite1.ToolWindows.Remove(toolwidnow1 );
ToolWindowContainer container = newToolWindowContainer();container.Items.Add(toolwidnow1 );
DockSite newdocksite = newDockSite();
newdocksite.LinkDockSite(docksite1);
toolwidnow1 .Float(newSize(200,200));
}
I am able to create the new docksite and remove the toolwindow fro the existing docksite but i am not able to drag the toolwindow1 in the newdocksite.