# Sandbox.UI.DropEvent

Files or text dragged in from outside the app - the desktop, an explorer window. Fires as
"ondrop" on the deepest panel under the cursor and bubbles up from there: repeatedly with
[Sandbox.UI.DropEvent.IsDrop](/api/Sandbox.UI.DropEvent/IsDrop) false while the drag hovers, so the panel can inspect the payload and
set [Sandbox.UI.DropEvent.Action](/api/Sandbox.UI.DropEvent/Action), then once more with it true when the payload lands.

- Kind: class
- Namespace: `Sandbox.UI`
- Assembly: `Sandbox.Engine`
- Inherits: [Sandbox.UI.PanelEvent](/api/Sandbox.UI.PanelEvent)

## Constructors

- [`DropEvent`](/api/Sandbox.UI.DropEvent/.ctor)

## Properties

- [`Action`](/api/Sandbox.UI.DropEvent/Action): What dropping here would do. Leave [Sandbox.UI.DropAction.None](/api/Sandbox.UI.DropAction/None) to reject - the OS drag cursor shows the answer while hovering.
- [`Files`](/api/Sandbox.UI.DropEvent/Files): Full paths of the dragged files. Empty when text is being dragged.
- [`IsDrop`](/api/Sandbox.UI.DropEvent/IsDrop): False while the drag is still hovering - look at the payload and set [Sandbox.UI.DropEvent.Action](/api/Sandbox.UI.DropEvent/Action) to answer. True when it actually lands.
- [`Position`](/api/Sandbox.UI.DropEvent/Position): Where the drag is, in the panel's coordinate space.
- [`Text`](/api/Sandbox.UI.DropEvent/Text): The dragged text, or null when files are being dragged.
