'Declaration Public Shared Sub SetFloatingSize( _ ByVal d As DependencyObject, _ ByVal value As Size _ )
public static void SetFloatingSize( DependencyObject d, Size value )
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); }
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