1. I have 3 pane in my project, and I would like to prevent them from Floating
2. For the other project, I would like to give the user the flexibility of making the pane floating, but, I do not want them have the option to close the pane.
1 Answer, 1 is accepted
answered on 19 Jun 2008, 01:00 PM
Please find the answers to your questions below:
In order to prevent your dock panels from floating, set dockingManager.AllowFloating to false.
You can hide the close button of the floating window. To do that, you should first subscribe to the SizeChanged event of the corresponding DockPanel. Then, in the SizeChanged event handler, hide the close button:
dockPanel1.SizeChanged += new EventHandler(dockPanel1_SizeChanged);