How can I make a win dock manager pane hidden from the user? My reason for this is to have controls available in the form but not visible. I know I can do this by adding to a normal panel and changing the properties for that, however, it is much nicer developer experience to just have them available on a docking pane that is not visible at runtime.
Thanks
I believe setting the Closed property on a pane to True will hide the pane. Then setting it to False will show the pane again.
I want the same effect in the application. We have the concept of workspaces. So we need to show/hide docked controls when users switches workspace.
In the code we show/hide the control using Close() and Show() method. This works fine in other scenario's except when the control is docked with AutoHide state, on restoring the control using Show() the AutoHide state is losed. The control docking i.e. DockTop, DockLeft is retained.
I tried your suggestion to use the Closed property instead of Close()/Show() method but it still does not work. Anything that I can do to restore the control correctly.
Also based on the documentation, I am assuming the setting the property or calling the method has same effect.