Hello. Not sure if this is correct but I have organized my content this way:
I have one dock manager which contains 4 split panes. Each split pane has two content panes.
I want to group the content panes together so that they cannot be separated from one another and dragged off somewhere else. When I do want to dock them somewhere else it would have to be together.
Thanks
Hello Kris and thank you for posting!
By default the SplitPanes cannot be moved with all the panes that are defined in them. A possible solution for moving both content panes together would be to remove the panes from the previous SplitPane when a pane is moved and add them both to the new parent.I have created a sample project for you handling the PaneDragStarting and PaneDragEnded events to achieve this. Please do not hesitate to let me know if you have any questions or concerns.
Hello Kris,
There are two more approaches that I would like to provide to you and that could be helpful in your scenario.If you would like to display two controls and move them together, you can try using one ContentPane that has a Grid with two columns and a GridSplitter between them. Another approach would be to create a single content pane for each grouping of the two controls and put a XamDockManager within the ContentPane. In that case the LayoutMode property of the “inner” XamDockManager should be set to FillContainer. That manager can have a SplitPane with two panes which have the dragging functionality disabled. One thing to mention here is that the XamDockManager would be a header for the “outer” content pane that can be dragged and for the “inner” content panes that could not be dragged. Of course, the dragging in the “inner” dockmanager could be allowed, although this could be a little confusing for the end user as the dragging between different dockmanager is not allowed so the panes in the “inner” dockmanager would be dragged only within it.