Version

Set the Size of a Floating Pane

When you float a pane by setting the xamDockManager™ control’s InitialLocation attached property to FloatingOnly, you can explicitly set the size of the floating pane by setting xamDockManager’s FloatingSize attached property to an instance of a Size structure. In XAML, you can set the FloatingSize attached property by specifying a value for the width and a value for the height separated by a comma or a space.

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

In XAML:

<igDock:XamDockManager Name="xamDockManager1">
    <igDock:XamDockManager.Panes>
        <igDock:SplitPane
            Name="splitPane1"
            igDock:XamDockManager.InitialLocation="FloatingOnly"
            igDock:XamDockManager.FloatingSize="150 150">
            <igDock:ContentPane Header="Pane 1" />
        </igDock:SplitPane>
    </igDock:XamDockManager.Panes>
</igDock:XamDockManager>

In Visual Basic:

Imports Infragistics.Windows.DockManager
...
Dim splitPane1 As New SplitPane()
XamDockManager.SetFloatingSize(splitPane1, New Size(150, 150))
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.SetFloatingSize(splitPane1, new Size(150, 150));
XamDockManager.SetInitialLocation(splitPane1, InitialPaneLocation.FloatingOnly);
this.xamDockManager1.Panes.Add(splitPane1);
ContentPane pane1 = new ContentPane();
pane1.Header = "Pane 1";
splitPane1.Panes.Add(pane1);
...