Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Next item gets dragged when starting dragging in lower half of item #188

Closed
MarkusPalcer opened this issue Jun 24, 2016 · 2 comments
Closed
Assignees
Labels
Milestone

Comments

@MarkusPalcer
Copy link

I want the user to be able to drag Items in an ItemsControl.
My Items consist of a GroupBox which contains a ComboBox and a Button.
When I start dragging an Item from its upper half, the item itself starts getting dragged.
When I however start the dragging from the lower half, the next item gets dragged (the ghostly adorner shows the next item and the index that the drop handler gets is also wrong).

I created a minimal sample and a video showing the effect. The sources of the sample as well as the video are attached.
In the minimal sample the drop handler doesn't do anything, so no actual reordering takes place, but that could easily be added.

This version uses the sources of the Alpha 13, but the effect also happens with the latest non-prerelease version.

WpfApplication2.zip
sample video.zip

@punker76 punker76 self-assigned this Jun 24, 2016
punker76 added a commit that referenced this issue Aug 2, 2016
@punker76 punker76 added this to the v1.0.0 milestone Aug 3, 2016
punker76 added a commit that referenced this issue Aug 4, 2016
Fix wrong start index with ItemsControl #188
punker76 added a commit that referenced this issue Aug 4, 2016
@punker76
Copy link
Owner

@MarkusPalcer Thx for the sample and the video!

@punker76 punker76 added the Bug label Aug 31, 2016
punker76 added a commit that referenced this issue Aug 31, 2016
@MarkusPalcer
Copy link
Author

Thx for the fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants