I have a PaneManager class that manages ContentPanes, and when a user opens a new pane and the active pane is in a SplitPane, the PaneManager morphs the SplitPane into a TabGroupPane. However, the transition is a bit disruptive, and I'm wondering if there is a smoother way to do it than the obvious:
else if (activePane.Parent is SplitPane)
{
var split = activePane.Parent as SplitPane;
split.Panes.Remove(activePane);
var group = new TabGroupPane();
split.Panes.Add(group);
group.Items.Add(activePane);
group.Items.Add(newPane);
}
Hi Darryl,
I have been looking into your question and we do not provide a built-in functionality that allows us to morph a SplitPane to TabGroupPane. I believe that removing/adding manually the panes is a good option. I am not sure whether this approach cause some kind of issue on your side. If yes, please attach a sample application where it appears in order to investigate it.
Looking forward to hearing from you.
No functional issue with it, only wondering if anyone had any ideas how to make the transition visually smoother. When you drag a ContentPane to a floating SplitPane a similar transition occurs in DockManager, albeit with the visual cues and a smooth transition. Perhaps the developers have some ideas on this? Thanks for helping.
Hello Darryl,
I have contacted our development team about more information regarding another approach for morphing SplitPane to TabGroupPane.
I will write you back shortly.