GongSolutions.WPF.DragDrop Documentation

repository·develop·Indexed 25 days ago

https://github.com/punker76/gong-wpf-dragdrop

An MVVM-prioritized drag-and-drop framework for WPF that allows developers to implement re-ordering, moving, and copying behaviors within ViewModels using attached properties. It supports ListBox, ListView, TreeView, DataGrid, and other ItemsControls, providing visual feedback via Adorners. Compatible with .NET Framework 4.6.2+ and .NET 6+ on Windows.

Tokens
287
Snippets
0
Records
2
Agent score
32%

What's inside GongSolutions.WPF.DragDrop

  1. Overview of GongSolutions.WPF.DragDrop

    develop

    GongSolutions.WPF.DragDrop is a drag-and-drop framework designed specifically for WPF applications. It is built to work seamlessly with the MVVM (Model-View-ViewModel) pattern, allowing drag-and-drop logic to reside in ViewModels rather than code-behind. It uses attached properties to bind to drag and drop handlers.

    Key Features:

    • MVVM Support: Logic is placed in ViewModels via attached properties.
    • Multiple Selections: Supports dragging multiple items at once.
    • Flexible Re-ordering: Supports re-ordering within the same control or moving items between different controls.
    • Broad Control Support: Works with ListBox, ListView, TreeView, DataGrid, and any other ItemsControl.
    • Operation Modes: Supports inserting, moving, or copying items into collections of the same or different item types.
    • Visual Feedback: Provides Adorners for visual feedback and item previews during the drag operation.
    • Sensible Defaults: Reduces boilerplate for common drag-and-drop scenarios.