# ferroui_xaml_interactions_draggable

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

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

```rust
module ferroui_xaml_interactions_draggable
```

ferroui-xaml-interactions-draggable

Behaviors that drag elements in place, ported from the `Xaml.Behaviors.Interactions.Draggable`
project of Xaml.Behaviors (see `NOTICE.md`):

- [`CanvasDragBehavior`](/docs/0.5.0/api/ferroui-xaml-interactions-draggable/struct-canvasdragbehavior/): moves a child of a canvas with the pointer;
- [`GridDragBehavior`](/docs/0.5.0/api/ferroui-xaml-interactions-draggable/struct-griddragbehavior/): swaps the cells of a child of a grid with the child under the pointer;
- [`ItemDragBehavior`](/docs/0.5.0/api/ferroui-xaml-interactions-draggable/struct-itemdragbehavior/) and [`ListReorderDragBehavior`](/docs/0.5.0/api/ferroui-xaml-interactions-draggable/struct-listreorderdragbehavior/): reorder the items of an items control,
  the second with a placeholder at the insertion point;
- [`MouseDragElementBehavior`](/docs/0.5.0/api/ferroui-xaml-interactions-draggable/struct-mousedragelementbehavior/) and [`MultiMouseDragElementBehavior`](/docs/0.5.0/api/ferroui-xaml-interactions-draggable/struct-multimousedragelementbehavior/): move one or several
  controls by a translation;
- [`AutoScrollDuringDragBehavior`](/docs/0.5.0/api/ferroui-xaml-interactions-draggable/struct-autoscrollduringdragbehavior/): scrolls a scroll viewer while the pointer is dragged near
  its edges;
- [`SelectionAdorner`](/docs/0.5.0/api/ferroui-xaml-interactions-draggable/struct-selectionadorner/): the corner handles shown over a dragged element.

The styles of the reference (`Styles.xaml`) make tab controls, list boxes, canvases and grids
with the class `draggable` draggable; the build of the crate compiles them, and an application
includes them with
`<StyleInclude Source="ferres://FerroUI.Xaml.Interactions.Draggable/Styles.xaml" />`.

The namespace of the crate is `FerroUI.Xaml.Interactions.Draggable`, 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-draggable/function-register_types/) ran.

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

## Contents

- [`AutoScrollDuringDragBehavior`](/docs/0.5.0/api/ferroui-xaml-interactions-draggable/struct-autoscrollduringdragbehavior/) — struct
- [`CanvasDragBehavior`](/docs/0.5.0/api/ferroui-xaml-interactions-draggable/struct-canvasdragbehavior/) — struct
- [`GridDragBehavior`](/docs/0.5.0/api/ferroui-xaml-interactions-draggable/struct-griddragbehavior/) — struct
- [`ItemDragBehavior`](/docs/0.5.0/api/ferroui-xaml-interactions-draggable/struct-itemdragbehavior/) — struct
- [`ListReorderDragBehavior`](/docs/0.5.0/api/ferroui-xaml-interactions-draggable/struct-listreorderdragbehavior/) — struct
- [`MouseDragElementBehavior`](/docs/0.5.0/api/ferroui-xaml-interactions-draggable/struct-mousedragelementbehavior/) — struct
- [`MultiMouseDragElementBehavior`](/docs/0.5.0/api/ferroui-xaml-interactions-draggable/struct-multimousedragelementbehavior/) — struct
- [`register_types`](/docs/0.5.0/api/ferroui-xaml-interactions-draggable/function-register_types/) — function
- [`ASSEMBLY`](/docs/0.5.0/api/ferroui-xaml-interactions-draggable/static-assembly/) — static
- [`SelectionAdorner`](/docs/0.5.0/api/ferroui-xaml-interactions-draggable/struct-selectionadorner/) — struct

## Availability

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