Non ItemsControls use PreviewEvents instead of Bubbeling-Event-Version
See original GitHub issueAs already pointed out in #180, #159 and others: The “wrong” events are used - this breaks the order in which the handlers should be called.
Example:
In my case the window handles a drop event for a “project” file,
while the nested project file view handles source files of the project.
Those source files will either NOT be rejected if I set dropInfo.NotHandled=true
(application does not show a rejecting symbol) or the inner controls handler will not be called.
This is not expected behavior for a bubbling event like DragOver.
DragDrop.Properties.cs / IsDropTargetChanged
mentions this was changed for issue #85.
If I comment out the distinction between ItemsControls and others, the app works as expected. But I don’t know what else I might be breaking by doing so.
Would love to see this fixed. Thanks for all the hard work 👍
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (1 by maintainers)
@rubenwe It’s now possible to force which event should be used #300 thx to @Chri-s
Thanks for implementing and integrating the changes guys - I will have a look once 2.0.0 drops. This is a much appreciated addition 😃