# Sandbox.UI.FloatingWindow

Animates the window between its normal bounds and its icon at the bottom of the screen.

- Kind: class
- Namespace: `Sandbox.UI`
- Assembly: `Sandbox.Engine`
- Inherits: [Sandbox.UI.Panel](/api/Sandbox.UI.Panel)

## Constructors

- [`FloatingWindow`](/api/Sandbox.UI.FloatingWindow/.ctor): Create a window without taking keyboard focus away from its contents.

## Properties

- [`HasBeenDragged`](/api/Sandbox.UI.FloatingWindow/HasBeenDragged): Whether the user has moved this window from its initial placement.
- [`Icon`](/api/Sandbox.UI.FloatingWindow/Icon): The emoji displayed in the titlebar and when this window is minimized.
- [`IsAnimating`](/api/Sandbox.UI.FloatingWindow/IsAnimating): Whether the window is travelling between its expanded position and the minimized row.
- [`IsDragging`](/api/Sandbox.UI.FloatingWindow/IsDragging): Whether a titlebar drag is in progress.
- [`IsMinimized`](/api/Sandbox.UI.FloatingWindow/IsMinimized): Whether this window is showing as an icon at the bottom of the screen.
- [`IsThrowing`](/api/Sandbox.UI.FloatingWindow/IsThrowing): Whether a thrown window is still moving after the mouse was released.
- [`KeepOnScreen`](/api/Sandbox.UI.FloatingWindow/KeepOnScreen): Keep the expanded window within its root panel, including after the viewport or contents resize.
- [`OnCloseRequested`](/api/Sandbox.UI.FloatingWindow/OnCloseRequested): Handles a close request. When unset, closing deletes the window.
- [`ShowCloseButton`](/api/Sandbox.UI.FloatingWindow/ShowCloseButton): Whether the default titlebar includes a close button.
- [`ShowMinimizeButton`](/api/Sandbox.UI.FloatingWindow/ShowMinimizeButton): Whether the titlebar includes a minimize button.
- [`Title`](/api/Sandbox.UI.FloatingWindow/Title): The text displayed in the default titlebar.

## Methods

- [`BringToFront`](/api/Sandbox.UI.FloatingWindow/BringToFront): Raise this window among its siblings without changing keyboard focus or its UI layer.
- [`Minimize`](/api/Sandbox.UI.FloatingWindow/Minimize): Animate the window into a restore button at the screen edge, keeping its contents alive.
- [`MoveTo`](/api/Sandbox.UI.FloatingWindow/MoveTo): Move the window to a position in screen pixels, preserving it when its parent changes.
- [`OnDeleted`](/api/Sandbox.UI.FloatingWindow/OnDeleted): Remove this window from the minimized row when it is deleted.
- [`OnLayout`](/api/Sandbox.UI.FloatingWindow/OnLayout): Apply the saved position and keep the window inside the viewport using its measured size.
- [`RequestClose`](/api/Sandbox.UI.FloatingWindow/RequestClose): Ask the owner to close the window, or delete it when no handler is supplied.
- [`Restore`](/api/Sandbox.UI.FloatingWindow/Restore): Animate back to the window's size and position and bring it to the front.
- [`Tick`](/api/Sandbox.UI.FloatingWindow/Tick): Update viewport limits and raise the window when a child consumes a mouse press.
