Version

FloatingLocationProperty Field

Identifies the FloatingLocation attached dependency property
Syntax
'Declaration
 
Public Shared ReadOnly FloatingLocationProperty As DependencyProperty
public static readonly DependencyProperty FloatingLocationProperty
Example
This sample demonstrates how to create dockable floating and floating only panes and initialize their default size and location.

Imports Infragistics.Windows.DockManager

Private Sub InitializeDockManager(ByVal dockManager As XamDockManager)
    Dim splitFloatDock As New SplitPane()
    XamDockManager.SetInitialLocation(splitFloatDock, InitialPaneLocation.DockableFloating)

    ' the FloatingSize and FloatingLocation attached properties can be used 
    ' to get/set the position of a floating split pane - whether it is dockable 
    ' or not. 
    ' 
    XamDockManager.SetFloatingLocation(splitFloatDock, New Point(100, 100))
    XamDockManager.SetFloatingSize(splitFloatDock, New Size(350, 200))
    Dim cpInFloatDock As New ContentPane()
    cpInFloatDock.Header = "Floating Dockable"
    cpInFloatDock.Content = New RichTextBox()
    splitFloatDock.Panes.Add(cpInFloatDock)

    Dim splitFloatOnly As New SplitPane()
    XamDockManager.SetInitialLocation(splitFloatOnly, InitialPaneLocation.FloatingOnly)
    XamDockManager.SetFloatingLocation(splitFloatOnly, New Point(500, 400))
    XamDockManager.SetFloatingSize(splitFloatOnly, New Size(350, 200))
    Dim cpInFloatOnly As New ContentPane()
    cpInFloatOnly.Header = "Floating Only"
    cpInFloatOnly.Content = New RichTextBox()
    splitFloatOnly.Panes.Add(cpInFloatOnly)

    dockManager.Panes.Add(splitFloatDock)
    dockManager.Panes.Add(splitFloatOnly)
End Sub
using Infragistics.Windows.DockManager;

private void InitializeDockManager(XamDockManager dockManager)
{
	SplitPane splitFloatDock = new SplitPane();
	XamDockManager.SetInitialLocation(splitFloatDock, InitialPaneLocation.DockableFloating);

	// the FloatingSize and FloatingLocation attached properties can be used
	// to get/set the position of a floating split pane - whether it is dockable
	// or not.
	// 
	XamDockManager.SetFloatingLocation(splitFloatDock, new Point(100, 100));
	XamDockManager.SetFloatingSize(splitFloatDock, new Size(350, 200));
	ContentPane cpInFloatDock = new ContentPane();
	cpInFloatDock.Header = "Floating Dockable";
	cpInFloatDock.Content = new RichTextBox();
	splitFloatDock.Panes.Add(cpInFloatDock);

	SplitPane splitFloatOnly = new SplitPane();
	XamDockManager.SetInitialLocation(splitFloatOnly, InitialPaneLocation.FloatingOnly);
	XamDockManager.SetFloatingLocation(splitFloatOnly, new Point(500, 400));
	XamDockManager.SetFloatingSize(splitFloatOnly, new Size(350, 200));
	ContentPane cpInFloatOnly = new ContentPane();
	cpInFloatOnly.Header = "Floating Only";
	cpInFloatOnly.Content = new RichTextBox();
	splitFloatOnly.Panes.Add(cpInFloatOnly);

	dockManager.Panes.Add(splitFloatDock);
	dockManager.Panes.Add(splitFloatOnly);
}
<igDock:XamDockManager>
    
<igDock:XamDockManager.Panes>
        
<!-- Floating dockable panes can be docked or docked with -->
        
<!-- the FloatingSize and FloatingLocation attached properties can be used
             to get/set the position of a floating split pane - whether it is dockable
             or not. 
-->
        
<igDock:SplitPane igDock:XamDockManager.InitialLocation="DockableFloating"
                          
igDock:XamDockManager.FloatingLocation="100, 100"
                          
igDock:XamDockManager.FloatingSize="350,200">
            
<igDock:ContentPane Header="Floating Dockable">
                
<RichTextBox />
            
</igDock:ContentPane>
        
</igDock:SplitPane>
        
        
<!-- Floating Only panes cannot be docked with other panes -->
        
<igDock:SplitPane igDock:XamDockManager.InitialLocation="FloatingOnly"
                          
igDock:XamDockManager.FloatingLocation="500, 400"
                          
igDock:XamDockManager.FloatingSize="350,200">
            
<igDock:ContentPane Header="Floating Only">
                
<RichTextBox />
            
</igDock:ContentPane>
        
</igDock:SplitPane>
    
</igDock:XamDockManager.Panes>
</igDock:XamDockManager>
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also