# ferroui_xaml_interactions_draganddrop

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-xaml-interactions-draganddrop/

**module** · [`ferroui-xaml-interactions-draganddrop`](/docs/0.5.0/api/ferroui-xaml-interactions-draganddrop/) · v0.5.0

```rust
module ferroui_xaml_interactions_draganddrop
```

ferroui-xaml-interactions-draganddrop

Drag and drop behaviors, ported from the `Xaml.Behaviors.Interactions.DragAndDrop` project of
Xaml.Behaviors (see `NOTICE.md`):

- drag sources that start a drag and drop of the system with context data
  ([`ContextDragBehavior`](/docs/0.5.0/api/ferroui-xaml-interactions-draganddrop/struct-contextdragbehavior/), [`ContextDragWithDirectionBehavior`](/docs/0.5.0/api/ferroui-xaml-interactions-draganddrop/struct-contextdragwithdirectionbehavior/), [`PanelDragBehavior`](/docs/0.5.0/api/ferroui-xaml-interactions-draganddrop/struct-paneldragbehavior/)) or with
  data of a type ([`TypedDragBehavior`](/docs/0.5.0/api/ferroui-xaml-interactions-draganddrop/struct-typeddragbehavior/)), notifying an [`IDragHandler`](/docs/0.5.0/api/ferroui-xaml-interactions-draganddrop/trait-idraghandler/);
- drop targets that hand the drag events to an [`IDropHandler`](/docs/0.5.0/api/ferroui-xaml-interactions-draganddrop/trait-idrophandler/) ([`ContextDropBehavior`](/docs/0.5.0/api/ferroui-xaml-interactions-draganddrop/struct-contextdropbehavior/)), or
  execute a command ([`FilesDropBehavior`](/docs/0.5.0/api/ferroui-xaml-interactions-draganddrop/struct-filesdropbehavior/), [`TextDropBehavior`](/docs/0.5.0/api/ferroui-xaml-interactions-draganddrop/struct-textdropbehavior/), [`PanelDropBehavior`](/docs/0.5.0/api/ferroui-xaml-interactions-draganddrop/struct-paneldropbehavior/),
  [`ContentControlFilesDropBehavior`](/docs/0.5.0/api/ferroui-xaml-interactions-draganddrop/struct-contentcontrolfilesdropbehavior/), [`DragDropCommandsBehavior`](/docs/0.5.0/api/ferroui-xaml-interactions-draganddrop/struct-dragdropcommandsbehavior/)); the base of custom drop
  handlers ([`DropHandlerBase`](/docs/0.5.0/api/ferroui-xaml-interactions-draganddrop/trait-drophandlerbase/), [`BaseTreeViewDropHandler`](/docs/0.5.0/api/ferroui-xaml-interactions-draganddrop/trait-basetreeviewdrophandler/));
- the preview of dragged files ([`FilesPreviewBehavior`](/docs/0.5.0/api/ferroui-xaml-interactions-draganddrop/struct-filespreviewbehavior/), [`AddPreviewFilesAction`](/docs/0.5.0/api/ferroui-xaml-interactions-draganddrop/struct-addpreviewfilesaction/));
- a managed drag and drop inside the application, with a preview window
  ([`ManagedContextDragBehavior`](/docs/0.5.0/api/ferroui-xaml-interactions-draganddrop/struct-managedcontextdragbehavior/), [`ManagedContextDropBehavior`](/docs/0.5.0/api/ferroui-xaml-interactions-draganddrop/struct-managedcontextdropbehavior/), [`ManagedDragDropService`](/docs/0.5.0/api/ferroui-xaml-interactions-draganddrop/struct-manageddragdropservice/),
  [`DragPreviewService`](/docs/0.5.0/api/ferroui-xaml-interactions-draganddrop/struct-dragpreviewservice/)).

The styles of the reference (`Styles.xaml`: the adorners of the tree view items a drag passes
over) are compiled by the build of the crate; an application includes them with
`<StyleInclude Source="ferres://FerroUI.Xaml.Interactions.DragAndDrop/Styles.xaml" />`.

The namespace of the crate is `FerroUI.Xaml.Interactions.DragAndDrop` (and
`FerroUI.Xaml.Interactions.DragAndDrop.Controls` for the preview window), the first mapped into
the default XML namespace of the framework: documents name its types without a prefix once
[`register_types`](/docs/0.5.0/api/ferroui-xaml-interactions-draganddrop/function-register_types/) ran.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.DragAndDrop/lib.rs#L1)

## Contents

- [`values`](/docs/0.5.0/api/ferroui-xaml-interactions-draganddrop/values/) — module
- [`AddPreviewFilesAction`](/docs/0.5.0/api/ferroui-xaml-interactions-draganddrop/struct-addpreviewfilesaction/) — struct
- [`BaseTreeViewDropHandler`](/docs/0.5.0/api/ferroui-xaml-interactions-draganddrop/trait-basetreeviewdrophandler/) — trait
- [`ContentControlFilesDropBehavior`](/docs/0.5.0/api/ferroui-xaml-interactions-draganddrop/struct-contentcontrolfilesdropbehavior/) — struct
- [`ContextDragBehavior`](/docs/0.5.0/api/ferroui-xaml-interactions-draganddrop/struct-contextdragbehavior/) — struct
- [`ContextDragBehaviorBase`](/docs/0.5.0/api/ferroui-xaml-interactions-draganddrop/struct-contextdragbehaviorbase/) — struct
- [`ContextDragBehaviorBaseImpl`](/docs/0.5.0/api/ferroui-xaml-interactions-draganddrop/trait-contextdragbehaviorbaseimpl/) — trait
- [`ContextDragBehaviorBaseImplExt`](/docs/0.5.0/api/ferroui-xaml-interactions-draganddrop/trait-contextdragbehaviorbaseimplext/) — trait
- [`ContextDragWithDirectionBehavior`](/docs/0.5.0/api/ferroui-xaml-interactions-draganddrop/struct-contextdragwithdirectionbehavior/) — struct
- [`ContextDropBehavior`](/docs/0.5.0/api/ferroui-xaml-interactions-draganddrop/struct-contextdropbehavior/) — struct
- [`ContextDropBehaviorBase`](/docs/0.5.0/api/ferroui-xaml-interactions-draganddrop/struct-contextdropbehaviorbase/) — struct
- [`ContextDropBehaviorBaseImpl`](/docs/0.5.0/api/ferroui-xaml-interactions-draganddrop/trait-contextdropbehaviorbaseimpl/) — trait
- [`ContextDropBehaviorBaseImplExt`](/docs/0.5.0/api/ferroui-xaml-interactions-draganddrop/trait-contextdropbehaviorbaseimplext/) — trait
- [`IDragHandler`](/docs/0.5.0/api/ferroui-xaml-interactions-draganddrop/trait-idraghandler/) — trait
- [`IDropHandler`](/docs/0.5.0/api/ferroui-xaml-interactions-draganddrop/trait-idrophandler/) — trait
- [`DragAndDropEventsBehavior`](/docs/0.5.0/api/ferroui-xaml-interactions-draganddrop/struct-draganddropeventsbehavior/) — struct
- [`DragAndDropEventsBehaviorImpl`](/docs/0.5.0/api/ferroui-xaml-interactions-draganddrop/trait-draganddropeventsbehaviorimpl/) — trait
- [`DragAndDropEventsBehaviorImplExt`](/docs/0.5.0/api/ferroui-xaml-interactions-draganddrop/trait-draganddropeventsbehaviorimplext/) — trait
- [`DragDropCommandsBehavior`](/docs/0.5.0/api/ferroui-xaml-interactions-draganddrop/struct-dragdropcommandsbehavior/) — struct
- [`DropBehaviorBase`](/docs/0.5.0/api/ferroui-xaml-interactions-draganddrop/struct-dropbehaviorbase/) — struct
- [`DropHandlerBase`](/docs/0.5.0/api/ferroui-xaml-interactions-draganddrop/trait-drophandlerbase/) — trait
- [`FilesDropBehavior`](/docs/0.5.0/api/ferroui-xaml-interactions-draganddrop/struct-filesdropbehavior/) — struct
- [`FilesPreviewBehavior`](/docs/0.5.0/api/ferroui-xaml-interactions-draganddrop/struct-filespreviewbehavior/) — struct
- [`DragPreviewService`](/docs/0.5.0/api/ferroui-xaml-interactions-draganddrop/struct-dragpreviewservice/) — struct
- [`DragPreviewWindow`](/docs/0.5.0/api/ferroui-xaml-interactions-draganddrop/struct-dragpreviewwindow/) — struct
- [`ManagedContextDragBehavior`](/docs/0.5.0/api/ferroui-xaml-interactions-draganddrop/struct-managedcontextdragbehavior/) — struct
- [`ManagedContextDropArgs`](/docs/0.5.0/api/ferroui-xaml-interactions-draganddrop/struct-managedcontextdropargs/) — struct
- [`ManagedContextDropBehavior`](/docs/0.5.0/api/ferroui-xaml-interactions-draganddrop/struct-managedcontextdropbehavior/) — struct
- [`ManagedDataTransferExtensions`](/docs/0.5.0/api/ferroui-xaml-interactions-draganddrop/trait-manageddatatransferextensions/) — trait
- [`ManagedDataTransferItemExtensions`](/docs/0.5.0/api/ferroui-xaml-interactions-draganddrop/trait-manageddatatransferitemextensions/) — trait
- [`ManagedDragDropService`](/docs/0.5.0/api/ferroui-xaml-interactions-draganddrop/struct-manageddragdropservice/) — struct
- [`PanelDragBehavior`](/docs/0.5.0/api/ferroui-xaml-interactions-draganddrop/struct-paneldragbehavior/) — struct
- [`PanelDropBehavior`](/docs/0.5.0/api/ferroui-xaml-interactions-draganddrop/struct-paneldropbehavior/) — struct
- [`register_types`](/docs/0.5.0/api/ferroui-xaml-interactions-draganddrop/function-register_types/) — function
- [`ASSEMBLY`](/docs/0.5.0/api/ferroui-xaml-interactions-draganddrop/static-assembly/) — static
- [`TextDropBehavior`](/docs/0.5.0/api/ferroui-xaml-interactions-draganddrop/struct-textdropbehavior/) — struct
- [`TypedDragBehavior`](/docs/0.5.0/api/ferroui-xaml-interactions-draganddrop/struct-typeddragbehavior/) — struct
- [`TypedDragBehaviorBase`](/docs/0.5.0/api/ferroui-xaml-interactions-draganddrop/struct-typeddragbehaviorbase/) — struct
- [`TypedDragBehaviorBaseImpl`](/docs/0.5.0/api/ferroui-xaml-interactions-draganddrop/trait-typeddragbehaviorbaseimpl/) — trait
- [`TypedDragBehaviorBaseImplExt`](/docs/0.5.0/api/ferroui-xaml-interactions-draganddrop/trait-typeddragbehaviorbaseimplext/) — trait

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
