1) When a user closes a pane how can they reopen that pane?
2) Currently I save and load the users layout customization, I would like to add an option somewhere in the XamDockManager that would allow the user to reset the layout to the default. Any sugeestions?
Thanks in advance,
Troy
1) There is no UI built into xamDockManager to reshow a pane just as there is no ui in the dockmanager portion of VS. In VS this is done by having a MenuItem for each tool window (e.g. View->Solution Explorer) whereby clicking that item would cause you to execute some code that would set the Visibility of the ContentPane back to Visible.
2) The easiest way to do this is to use the SaveLayout method in code when the xamDockManager is first loaded at runtime before you load a layout and before the end user has had a chance to rearrange any panes (e.g. in the Loaded event of the xamDockManager). You can use the overload of the SaveLayout method that returns a string and just hold onto that string. When the user chooses to "reset the layout" you can just call the LoadLayout method passing in that string.