Skip to content

Non ItemsControls use PreviewEvents instead of Bubbeling-Event-Version #287

@rubenwe

Description

@rubenwe

As 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 👍

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions