ferroui_xaml_interactions_draganddrop
module · ferroui-xaml-interactions-draganddrop · v0.5.0
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,ContextDragWithDirectionBehavior,PanelDragBehavior) or with data of a type (TypedDragBehavior), notifying anIDragHandler; - drop targets that hand the drag events to an
IDropHandler(ContextDropBehavior), or execute a command (FilesDropBehavior,TextDropBehavior,PanelDropBehavior,ContentControlFilesDropBehavior,DragDropCommandsBehavior); the base of custom drop handlers (DropHandlerBase,BaseTreeViewDropHandler); - the preview of dragged files (
FilesPreviewBehavior,AddPreviewFilesAction); - a managed drag and drop inside the application, with a preview window
(
ManagedContextDragBehavior,ManagedContextDropBehavior,ManagedDragDropService,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 ran.
Contents
values— moduleAddPreviewFilesAction— structBaseTreeViewDropHandler— traitContentControlFilesDropBehavior— structContextDragBehavior— structContextDragBehaviorBase— structContextDragBehaviorBaseImpl— traitContextDragBehaviorBaseImplExt— traitContextDragWithDirectionBehavior— structContextDropBehavior— structContextDropBehaviorBase— structContextDropBehaviorBaseImpl— traitContextDropBehaviorBaseImplExt— traitIDragHandler— traitIDropHandler— traitDragAndDropEventsBehavior— structDragAndDropEventsBehaviorImpl— traitDragAndDropEventsBehaviorImplExt— traitDragDropCommandsBehavior— structDropBehaviorBase— structDropHandlerBase— traitFilesDropBehavior— structFilesPreviewBehavior— structDragPreviewService— structDragPreviewWindow— structManagedContextDragBehavior— structManagedContextDropArgs— structManagedContextDropBehavior— structManagedDataTransferExtensions— traitManagedDataTransferItemExtensions— traitManagedDragDropService— structPanelDragBehavior— structPanelDropBehavior— structregister_types— functionASSEMBLY— staticTextDropBehavior— structTypedDragBehavior— structTypedDragBehaviorBase— structTypedDragBehaviorBaseImpl— traitTypedDragBehaviorBaseImplExt— trait
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.