Use Case
We are building Task Runner Extended, a VS extension (VisualStudio.Extensibility SDK 17.14, out-of-process) with a TreeView in Remote UI. We want users to drag items between tree nodes (e.g., drag a task into a group).
Problem
Remote UI does not support code-behind or event handlers. WPF drag-and-drop requires imperative DragDrop.DoDragDrop() calls that cannot be expressed declaratively in XAML. The vs:EventHandler mechanism works for click events but cannot initiate a drag operation.
What we need
A declarative way to enable drag-and-drop in Remote UI XAML, for example:
- An attached behavior like
vs:DragDropHandler (similar to vs:EventHandler)
- Or built-in support for
AllowDrop/DragSource attached properties that work with AsyncCommands
- Intra-control drag (within the same TreeView) would be sufficient
Current workaround
We use context menu "Add to Group..." as an alternative. This works but is less intuitive.
Environment
- VisualStudio.Extensibility SDK 17.14.*
- Visual Studio 2026
- Out-of-process extension with Remote UI
Use Case
We are building Task Runner Extended, a VS extension (VisualStudio.Extensibility SDK 17.14, out-of-process) with a TreeView in Remote UI. We want users to drag items between tree nodes (e.g., drag a task into a group).
Problem
Remote UI does not support code-behind or event handlers. WPF drag-and-drop requires imperative
DragDrop.DoDragDrop()calls that cannot be expressed declaratively in XAML. Thevs:EventHandlermechanism works for click events but cannot initiate a drag operation.What we need
A declarative way to enable drag-and-drop in Remote UI XAML, for example:
vs:DragDropHandler(similar tovs:EventHandler)AllowDrop/DragSourceattached properties that work with AsyncCommandsCurrent workaround
We use context menu "Add to Group..." as an alternative. This works but is less intuitive.
Environment