Drag & Drop Does Not Initiate from Button/Interactable Controls

Grids for WPF Forum

Posted 3 months ago by Dan Hutt
Version: 24.1.4
Platform: .NET 4.7
Environment: Windows 11 (64-bit)
Avatar

Hi there. We are having a bit of an issue with the Drag & Drop functionality for a TreeListBox.

If the tree item has a Button or other similar control as the content, Drag & Drop does not work. I suspect this is due to the Button handling the event for clicking and not allowing the event to tunnel or bubble to the TreeItem. I haven't been able to find a workaround, so any help would be very appreciated.

Thanks!

Comments (2)

Answer - Posted 3 months ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Dan,

Yes, if a child control handles mouse input, then drag and drop for the TreeListBoxItem won't work.  You'd have to either make that child control IsHitTestVisible=False or don't have it span the full width of the row so that there is area to grab on for TreeListBoxItem dragging.


Actipro Software Support

Posted 3 months ago by Dan Hutt
Avatar

Hey there, thanks for confirming. I had a hunch.

The latest build of this product (v25.1.0) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.