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

Default drag adorner does not display when multiple items are selected #353

Open
gtaylor1981 opened this issue Jul 21, 2020 · 0 comments
Open

Comments

@gtaylor1981
Copy link

gtaylor1981 commented Jul 21, 2020

If multiple items are selected (in a ListBox for example) then the default drag adorner does not display.

What steps will reproduce this issue?

Set DragDrop.UseDefaultDragAdorner="True" on a ListBox with SelectionMode="Extended" then drag multiple items.

This can be seen directly in ListBoxSamples.xaml at ListBox > Horizontal > ListBox bound to a collection.
Dragging a single item shows the default drag adorner, dragging multiple items does not.

Expected outcome

Expectation would be to see a similar drag adorner as for a single item, but with multiple items.

The code for this seems to be present in DragDrop.cs however it is not used because the useDefaultDragAdorner flag is negated there. If the negation is removed, the code works as expected.

Environment

  • GongSolutions.WPF.DragDrop v2.2.0
  • Windows 10 (1709)
  • Visual Studio 2019 v16.6.2
  • .NET Framework 4.6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants