Version

Set the Initial Location of a Pane

The xamDockManager™ control docks all root-level split panes in its Panes collection to the left by default. This means that all your content will be docked to the left when the application starts. However, you can set xamDockManager’s InitialLocation attached property to dock a root-level split pane on a specific side of your application or to float a root-level split pane when your application starts.

The InitialLocation attached property will not have any effect once xamDockManager adds the split pane to its Panes collection. You must set the InitialLocation attached property either in XAML or before you add a dynamically-instantiated split pane to xamDockManager’s Panes collection.

The following code demonstrates how to set the initial location of a pane.

In XAML:

<igDock:XamDockManager Name="xamDockManager1">
    <igDock:XamDockManager.Panes>
        <igDock:SplitPane igDock:XamDockManager.InitialLocation="DockedRight">
            <igDock:ContentPane Header="Pane 1">
                <!--TODO: Add content here-->
            </igDock:ContentPane>
        </igDock:SplitPane>
    </igDock:XamDockManager.Panes>
</igDock:XamDockManager>

In Visual Basic:

Imports Infragistics.Windows.DockManager
...
Dim splitPane1 As New SplitPane()
'You must set the InitialLocation attached property before you add the split pane to the Panes collection.
XamDockManager.SetInitialLocation(splitPane1, InitialPaneLocation.DockedRight)
Me.xamDockManager1.Panes.Add(splitPane1)
Dim contentPane1 As New ContentPane()
contentPane1.Header = "Pane 1"
splitPane1.Panes.Add(contentPane1)
...

In C#:

using Infragistics.Windows.DockManager;
...
SplitPane splitPane1 = new SplitPane();
//You must set the InitialLocation attached property before you add the split pane to the Panes collection.
XamDockManager.SetInitialLocation(splitPane1, InitialPaneLocation.DockedRight);
this.xamDockManager1.Panes.Add(splitPane1);
ContentPane contentPane1 = new ContentPane();
contentPane1.Header = "Pane 1";
splitPane1.Panes.Add(contentPane1);
...