Version

Set the Location of a Floating Pane

When you float a pane by setting the xamDockManager™ control’s InitialLocation attached property to FloatingOnly, you can position the floating pane by setting xamDockManager’s FloatingLocation attached property to an instance of a Point structure. In XAML, you can set the FloatingLocation attached property by specifying an x coordinate and y coordinate separated by a comma or a space.

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

In XAML:

...
<igDock:XamDockManager Name="xamDockManager1">
    <igDock:XamDockManager.Panes>
        <igDock:SplitPane
            Name="splitPane1"
            igDock:XamDockManager.FloatingLocation="0 0"
            igDock:XamDockManager.InitialLocation="FloatingOnly">
            <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()
XamDockManager.SetFloatingLocation(splitPane1, New Point(0, 0))
XamDockManager.SetInitialLocation(splitPane1, InitialPaneLocation.FloatingOnly)
Me.xamDockManager1.Panes.Add(splitPane1)
Dim pane1 As New ContentPane()
pane1.Header = "Pane 1"
splitPane1.Panes.Add(pane1)
...

In C#:

using Infragistics.Windows.DockManager;
...
SplitPane splitPane1 = new SplitPane();
XamDockManager.SetFloatingLocation(splitPane1, new Point(0, 0));
XamDockManager.SetInitialLocation(splitPane1, InitialPaneLocation.FloatingOnly);
this.xamDockManager1.Panes.Add(splitPane1);
ContentPane pane1 = new ContentPane();
pane1.Header = "Pane 1";
splitPane1.Panes.Add(pane1);
...