Skip to content

Feature Request: Declarative drag-and-drop support in Remote UI #561

@iwhp

Description

@iwhp

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions