# Floating Windows

**ToolWindows** can reside in docked or floating docking containers. Floating containers are still controlled by **RadDock**.

## Floating a ToolWindow

There are multiple ways to float a **ToolWindow**:

* Drag the **ToolWindow** out of the docked container area to an existing floating container.

* Drag the **ToolWindow** to any area within the **DockingAssistant** other than a drop target icon, the **RadDock** will create a new floating container with the **ToolWindow** in it.

* Right click the **ToolWindow** title bar and select **Floating** from the context menu.

* Double-click the title bar.

## Moving a ToolWindow to an Existing Floating Window

You can drag **DockPanels** to an existing floating container. Select left, right, top, or bottom drop targets to create a split-cell layout, just as you would with a docked container.

> caption Figure 1: Dock window inside floating window.

![WinForms RadDock Dock window inside floating window](https://www.telerik.com/products/winforms/documentation/assets/6dadf55137dbb82cd7c88afddcec61e4/dock-architecture-and-features-floating-windows001.gif)

## Unfloating a ToolWindow

To "un-float" a **ToolWindow**, drag the title bar to a docked container, or double-click the title bar.

## Moving a ToolWindow to a New Docking Container

If you use the drop target icons in the [DockingAssistant](https://www.telerik.com/products/winforms/documentation/controls/dock/architecture-and-features/docking-assistant) outer zone, the **RadDock** will create a new docking container. The **ToolWindow** that was in a floating container will fill the new docked container.

> caption Figure 2: Re-Dock floating window.

![WinForms RadDock Re-Dock Floating Window](https://www.telerik.com/products/winforms/documentation/assets/7e82447b02cde831107dbb26ad455b8e/dock-architecture-and-features-floating-windows002.gif)

## Moving a Floating ToolWindow to an Existing Container

If you use the drop target icons in the inner zone different than the fill option, the **RadDock** will insert the **ToolWindow** that was in the floating container into an new docked container. Then, it will rearrange other docking containers within that container to accommodate the new docking container, subject to any minimum or maximum size restrictions.

> caption Figure 3: Moving a Floating ToolWindow to an Existing Container.

![WinForms RadDock Moving a Floating ToolWindow to an Existing Container](https://www.telerik.com/products/winforms/documentation/assets/e7b12f383ed4c214edee4aed8a234dae/dock-architecture-and-features-floating-windows003.gif)

## Floating a document window

Document windows can also reside in a floating window. To make a document window float, drag its tab outside of any docking container. This will create a floating window with the document inside it.

> caption Figure 4: Floating a document window.

![WinForms RadDock Floating a document window](https://www.telerik.com/products/winforms/documentation/assets/f84587584125cd62df0e1415c86ac25c/dock-architecture-and-features-floating-windows004.gif)

## Moving a document window to an existing floating window

You can drag document windows to an existing floating container. Select left, right, top, or bottom drop targets to create a split-cell layout or select the fill target to create a tab for the document in the existing document container.

> caption Figure 5: Moving a document window to an existing floating window.

![WinForms RadDock Moving a document window to an existing floating window](https://www.telerik.com/products/winforms/documentation/assets/1d20298723207a2146ac98a29ecdf637/dock-architecture-and-features-floating-windows005.gif)

## Changing the floating behavior

To enable the Visual Studio 2008-like docking behavior, set the **SingleScreen** property to *true*. Enabling this property will prevent document windows from floating and from docking inside existing floating windows.

```C#
this.radDock1.SingleScreen = true;
```

```VB.NET
Me.RadDock1.SingleScreen = True
```

## Properties

This section describes the FloatinWindows specific properties.

* **Standalone**: Allows the floating window to behave like separate form and appear in the taskbar.
* **SnapToScreen**: Indicates whether this window should snap to the screen's edges.
* **SnapToOthers**: Indicates whether this window should snap to other windows.
* **SnapThreshold**: Indicates whether the threshold between edges before the window snaps.
* **SnapOnResize**: Indicates whether this window should snap while resizing.
* **SnapOnMove**: Indicates whether this window should snap while dragging.

> note The snapping functionality can be enabled/disabled by using the **EnableFloatingWindowSnapping** property of **RadDock**.

## See Also

* [Customizing Floating Windows](https://www.telerik.com/products/winforms/documentation/controls/dock/object-model/customizing-floating-windows)
* [Using the CommandManager](https://www.telerik.com/products/winforms/documentation/controls/dock/architecture-and-features/using-the-commandmanager)
* [Using the ContextMenuService](https://www.telerik.com/products/winforms/documentation/controls/dock/architecture-and-features/using-the-contextmenuservice)
* [Using the DragDropService](https://www.telerik.com/products/winforms/documentation/controls/dock/architecture-and-features/using-the-dragdropservice)
* [Document Manager](https://www.telerik.com/products/winforms/documentation/controls/dock/architecture-and-features/document-manager)
* [Understanding RadDock](https://www.telerik.com/products/winforms/documentation/controls/dock/architecture-and-features/understanding-raddock)
