question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Non ItemsControls use PreviewEvents instead of Bubbeling-Event-Version

See original GitHub issue

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 👍

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
punker76commented, Nov 30, 2018

@rubenwe It’s now possible to force which event should be used #300 thx to @Chri-s

0reactions
rubenwecommented, Dec 1, 2018

Thanks for implementing and integrating the changes guys - I will have a look once 2.0.0 drops. This is a much appreciated addition 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Items added to ItemsControl not using ItemTemplate
In the code behind I have an ObservableCollection of DashboardItems, which the ItemsControl is bound to. How would I force the ItemsControl ......
Read more >
Nested drop targets · Issue #159 · punker76/gong-wpf- ...
This is a Preview Mechanism being Tunneled down. ... Non ItemsControls use PreviewEvents instead of Bubbeling-Event-Version #287.
Read more >
ItemsControl Class (System.Windows.Controls)
Represents a control that can be used to present a collection of items.
Read more >
ItemsControl Class (Windows.UI.Xaml.Controls)
Represents a control that can be used to present a collection of items.
Read more >
The ItemsControl - The complete WPF tutorial
The ItemsControl is the most simple control for displaying a list of items in WPF. We look into all of its capabilities in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found