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.
We have looked at this scenario and we are not sure what exactly look disruptive for you.
When you activate a pane in a split pane there is a some flickering effect is that disturbs you thaw was caused by the pane activation? To be sure we are looking in the right place in your scenario can you show me a screenshot or video demonstrating this.
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.