punker76 / gong-wpf-dragdrop

The GongSolutions.WPF.DragDrop library is a drag'n'drop framework for WPF
BSD 3-Clause "New" or "Revised" License
2.25k stars 392 forks source link

Drag and Droppable TabControl's child TabControl can drag TabItem that is above the drag location. #483

Open bors97 opened 6 months ago

bors97 commented 6 months ago

Describe the bug When dragging a non-draggable child TabItem of a TabControl the TabItem that is straight above the drag location gets dragged. In the screenshot I started dragging the "asdf0" child item but it started dragging the TabItem 3. Dropping drops the TabItem 3 at the adorner's location.

To Reproduce Steps to reproduce the behavior:

  1. Create a nested TabControl
  2. Enable Drag and Drop on the parent TabControl
  3. Start dragging a TabItem of the child TabControl.

Expected behavior The child item is not draggable unless specifically given the property and the child item shouldn't drag the tabitem above.

Screenshots image

Desktop (please complete the following information):

Additional context Add any other context about the problem here.