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)
ToolWindowContainer container = newToolWindowContainer();container.Items.Add(toolwidnow1 );
DockSite newdocksite = newDockSite();
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.