I want to add a SplitPane inside other SplitPane. How can this be done at runtime?
Here is the sample of the file saved through the SaveLayout method.
I have to load the bold portion at runtime. How this can be done in C#. I can not use LoadLayout() method.
<?
xml version="1.0" encoding="utf-8" ?>
<
xamDockManager version="8.1.20081.2090">
contentPanes>
contentPane name="sampleUserctrl2" location="DockedLeft" lastActivatedTime="2009-04-28T12:10:53.4791605Z" />
contentPane name="sampleUserctrl3" location="DockedLeft" lastActivatedTime="2009-04-28T12:10:51.1352605Z" />
contentPane name="sampleUserctrl1" location="DockedLeft" />
</
panes>
splitPane splitterOrientation="Vertical" location="DockedLeft" extent="618">
contentPane name="sampleUserctrl1" />
splitPane>
splitPane splitterOrientation="Vertical" location="DockedLeft" extent="324">
splitPane name="Z12dd4e3614014f82bf59a02d2e4f9357" splitterOrientation="Horizontal" relativeSize="100,100">
contentPane name="sampleUserctrl2" relativeSize="100,57.3160795971655" />
contentPane name="sampleUserctrl3" relativeSize="100,142.683920402834" />
xamDockManager>
A SplitPane has a Panes collection. That collection can be given a TabGroupPane, SplitPane or ContentPane (if the SplitPane is within the DocumentContentHost then the latter is not supported) so you can just create a SplitPane. Create another SplitPane, add the ContentPanes to that SplitPane's Panes collection and add that SplitPane to the other SplitPane's Panes collection.