ferroui_xaml_interactions_draggable
module · ferroui-xaml-interactions-draggable · v0.5.0
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: moves a child of a canvas with the pointer;GridDragBehavior: swaps the cells of a child of a grid with the child under the pointer;ItemDragBehaviorandListReorderDragBehavior: reorder the items of an items control, the second with a placeholder at the insertion point;MouseDragElementBehaviorandMultiMouseDragElementBehavior: move one or several controls by a translation;AutoScrollDuringDragBehavior: scrolls a scroll viewer while the pointer is dragged near its edges;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 ran.
Contents
AutoScrollDuringDragBehavior— structCanvasDragBehavior— structGridDragBehavior— structItemDragBehavior— structListReorderDragBehavior— structMouseDragElementBehavior— structMultiMouseDragElementBehavior— structregister_types— functionASSEMBLY— staticSelectionAdorner— struct
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.